Notes posted by linjunpop

RSS feed
January 16, 2015
0 thanks

An article about token-based authentication

www.codeschool.com/blog/2014/02/03/token-based-authentication-rails/

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