- newbie: get attribute value of an object gives error undefined method for #<ActiveRecord::Relation>
- @location = Location.where(:id => 1)
- undefined method `city' for #<ActiveRecord::Relation:0x007ff2d1506330>
- @location = Location.where(:id => 1).first
- # or...
- @location = Location.find(1) # Finds by ID
- @location = Location.find(1) # 1 is the id your looking for