Skip to content

Instantly share code, notes, and snippets.

@bdthinh
Last active December 21, 2015 20:29
Show Gist options
  • Save bdthinh/6361792 to your computer and use it in GitHub Desktop.
Save bdthinh/6361792 to your computer and use it in GitHub Desktop.
Rails 3.2 Development Standards Guide
class MyModel < ActiveRecord::Base
# extends ...................................................................
# includes ..................................................................
# security (i.e. attr_accessible) ...........................................
# relationships .............................................................
# validations ...............................................................
# callbacks .................................................................
# scopes ....................................................................
# additional config .........................................................
# class methods .............................................................
# public instance methods ...................................................
# protected instance methods ................................................
# private instance methods ..................................................
end
###controller
#implement param first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment