Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

attr_accessible in Rails 4

Before going into the details of “attr_accessible”, the best thing would be to understand why it was needed. It was basically needed to avoid the Mass-assignment Attack. For that we need to know about Mass-assignment :- Mass-assignment is u

How to store constants in laravel 5.0

In laravel 5.0 the way to define constants and use them through out the project. Following are the steps to accomplish it:- Step 1st :- Creating a separate file under /config folder named as constants.php ( it can be any name) for storing all consta

How to create hierarchical multi-level category for ecommerce in Laravel 5.1

if you are planing to create an e Commerce application from scratch then there are possibilities that you will create Categories section in your application. Now at the beginning you may be asking yourself what is the best way to create multi-level c

Loading module/class from lib folder in Rails 3

Autoloading of modules/classes from lib directory is no more supported by Rails 3. There has been number of if and buts in its support and against but unfortunately it has been removed. While lazy loading was a very good feature where developer need

What is MIME and MIME Type?

MIME stands for - Multi-purpose Internet Mail Extensions. MIME types represents a unique file types as pre-defined over Internet. Web servers and browsers have a list of MIME types, which make a medium for files transfer of the same type in the

Selectors in jQuery?

Selectors are the entity which we used to select HTML elements from web page in jQuery. Selector in jQuery always start with dollar($)sign and parentheses like as $(). There are three ways to select the elements in a web page. 1) Select elemen

How can we find the number of days between given two dates on php 5.3 and above

Hi if you are using php version 5.3 or greater then some functions are really very quick to write and use. In this blog I am calculating the days between your given two dates. This is by far the most accurate way of calculating the difference: This

Updating one field in database using CakePhp

Updation in CakePHP is basically based on knowing the primary key(Id) of the records one wants to change/edit. You can update a field in CakePhp by two ways:- a)By using saveField method $this->ModelName->id=$id; $this->ModelName->

How to configure maven in Eclipse?

Maven can be configured in two ways in eclipse. Ist method: Open Eclipse Goto Help >> Install New Software. Enter the URL "http://download.eclipse.org/technology/m2e/releases "in Work" with field and press enter button. Select maven and pre

How to check variable is being passed in partial

While working in rails we make use of partials very often and there are case where we make use of same partial for different scenario. We try to achieve the same by passing default parameter for some unwanted variable which might case issue. Passing

1 55 363
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: