Official introduction and general reference to learning and using Rails.
Link: guides.rubyonrails.org
How to find records using a variety of methods and conditions. How to specify the order, retrieved attributes, grouping, and other properties of the found records. How to use eager loading to reduce the number of database queries needed for data retrieval. How to use dynamic finders m...
Active Record Basics Rails Database Migrations Active Record Validations Active Record Callbacks Active Record Associations Active Record Query Interface Layouts and Rendering in Rails Action View Form Helpers Action Controller Overview Rails Routing from the Outside In Active Support...
$ rails generate scaffold HighScore game:string score:integer invoke active_record create db/migrate/20120528060026_create_high_scores.rb create app/models/high_score.rb invoke test_unit create test/models/high_score_test.rb create test/fixtures/high_scores.yml invoke resource_route r...
method does the heavy lifting of rendering your application's content for use by a browser. There are a variety of ways to customize the behavior of render . You can render the default view for a Rails template, or a specific template, or a file, or inline code, or nothing at all. You...
Active Record Basics Rails Database Migrations Active Record Validations Active Record Callbacks Active Record Associations Active Record Query Interface Layouts and Rendering in Rails Action View Form Helpers Action Controller Overview Rails Routing from the Outside In Active Support...
configures Rails itself to serve static assets. Defaults to true, but in the production environment is turned off as the server software (e.g. Nginx or Apache) used to run the application should serve static assets instead. Unlike the default setting set this to true when running (abs...
is a connection between two Active Record models. Associations are implemented using macro-style calls, so that you can declaratively add features to your models. For example, by declaring that one model belongs_to another, you instruct Rails to maintain Primary Key–Foreign Key inform...
module ActiveSupport module Dependencies mattr_accessor :warnings_on_first_load mattr_accessor :history mattr_accessor :loaded mattr_accessor :mechanism mattr_accessor :load_paths mattr_accessor :load_once_paths mattr_accessor :autoloaded_constants mattr_accessor :explicitly_unloadabl...