Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
find_each method with options in Rails Active Records
When creating web applications, always a need arises when we have to iterate over a large number of records.
This process is called retrieving multiple objects in batches. This can be done through find_each method.
The find_each method by d...
after_initialize and after_find Callbacks in Rails
At the time of normal operations in rails application, the objects are either updated, created or destroyed or we create our defined methods in the controller.
Rails provide us with some hooks in the object life cycle which we can invoke...
Calculations in Active Records Query Interface
Active records query interface provide us with some very nice features to perform calculations or mathematical operations to retrieve selected records on the basis of those mathematical calculations. Those methods are as follows:
Count
...
Array Conditions and selecting specific fields to find or retrieve from database (Active records)
Array Conditions and selecting specific fields to find or retrieve from database through Active records
Array Conditions
To retrieve some specific data from the database we use the where method which gets the records in the form o...
Ordering, Limit and Offset in Active Records Rails
Active records provide us with ways to set constraints in our queries to specify the order in which we have to get the records from the table.
This can be done through the following ways:
order
This method is used to get recor...
Retrieving a Single Object From Active Records In Rails
Active records gives us different ways to retrieve single objects from it.
Those methods with examples are given below :
find
The find method allows us to retrieve a single object or we can say single record from the database ...
Active Record Migrations In Rails
Migrations in Rails
Active records provide us with a very useful feature to change or alter our database schema in ruby on rails.
Through these migrations we can make necessary changes to our database and make changes in our tables and rows...
CRUD operations in Rails
CRUD Operations in Rails
Before understanding CRUD operations in rails we will see what are active records. Active records point to the models of MVC architecture. Model is the component of mvc architecture which is responsible for persisting ...