update travis configuration to support newer ruby
update to latest gems
use https to connect rubygems.org
remove attr_accessible statements
fix "not defined for ActiveRecord::Associations::CollectionProxy" error
fix spec error