search for: external_api_place_data

Displaying 1 result from an estimated 1 matches for "external_api_place_data".

2011 Oct 25
7
additional model attributes
...e json output. i''ve tried with attr_accessor but that didn''t work either. any hints? thanks ========================================== place.rb class Place < ActiveRecord::Base attr_accessor: address end ========================================== places_controller.rb external_api_place_data = @client.find(place_id) place = Place.new place.name = place.name place.id = place.id //not showing up in the json result place.address = external_api_place_data.address places = [] places << place respond_to do |format| format.html # index.html.erb format.json { r...