app/assets/stylesheets Location of the stylesheets in a Rails application.

attr_accessor <:variable_list> Dynamically defines accessor methods for one or more class properties. In a modal, defines one or more values that you don't want to store in the database directly and that will only exist for the life of the object.

rails generate migration <name> Generate the template for a named migration.

rails generate scaffold <class> <member-list> Scaffold a class.

rake db:migrate Migrate the database.

rake <path> Make files that haven't been built yet.

rake -T List all available rake tasks.

rake test Run unit tests.

rake test TEST=<path> Run one specific unit test.

scope :<name>, -> {criteria_query} Define a predefined query scope.

Facts, Thoughts and Opinions


  •   Subtopics

  •   Writings

  Sources & Bookmarks

Name/Link Date