Flowdock

Notes posted by linjunpop

RSS feed
May 23, 2013
0 thanks

A simple usage example

See http://apidock.com/rails/String/inquiry

env = "production".inquiry
env.production?  # => true
env.development? # => false
September 28, 2012 - (<= v2.3.8)
2 thanks

Skip validations

.

user.save(false)

will skip validations

March 28, 2012 - (>= v3.0.0)
0 thanks

:as option

Code

root :to => 'projects#index', :as => 'foobar'

will generate a helper

foobar_path