Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.

KCA

  • rails g model Model attr:string{75} 75 is the char limit
1
2
3
Person.pluck(:id) # SELECT people.id FROM people
Person.uniq.pluck(:role) # SELECT DISTINCT role FROM people
Person.where(:confirmed => true).limit(5).pluck(:id)
  • Devise -> gem 'devise', then rails g install devise
  • rails g devise <model>
  • rails g devise:views
  • more steps on github

Comments