Non persisted model using include ActiveModel::Conversion and extend ActiveModel::Naming
complete non-persisted model
refactor model with 'include ActiveModel::Model'
enable hstore extension in Postgres
add hstore column to table
See hstore in action
use store_accessor to let Postgres keep track of hstore changes. Note: hstore is returned as a string from the databse
index on hstore :gin and :gist
add array type column 'tags'
add length restriction
add default string values ['a', 'b', 'c']
add daterange column to rooms table
use DECENT EXPOSURE GEM
use controller.controller_name and action_name for CSS
HAML can use helper method page_class
use flash when needed in controller
flash.notice and flash.alert
display flash msgs
use flash.now.notice && flash.now.alert to show flash messages in render template