RailsNme
Showing posts with label
rails
.
Show all posts
Showing posts with label
rails
.
Show all posts
Tuesday, February 22, 2011
Rails naming-1-Migrations
Migration naming convention - _to_<table_name>
add_password_
to_user
- constructs a migration to the user table.
How to find the rails environment
ruby-1.9.2-p0 :001 > Rails.env
=> "development"
ruby-1.9.2-p0 :002 > Rails.env.development?
=> true
Rails provides a
Rails
object with an
env
attribute and associated environment bollean methods.
Home
Subscribe to:
Posts (Atom)