search for: places_control

Displaying 2 results from an estimated 2 matches for "places_control".

Did you mean: place_control
2012 Nov 29
2
[Rails 3.2] form_tag w :remote => true doesn't fire up the js format
...es/search" data-remote="true" id="searchplaceForm" method="post"> ... input fields <input id="searchplace" name="commit" type="submit" value="Search" /> </form> upon submit, params received in backoffice/places_controller#search {"utf8"=>"✓", "country"=>"United", "city"=>"*", "street_address"=>"*", "wording"=>"*", "commit"=>"Search", "action"=>"search",...
2011 Oct 25
7
additional model attributes
...never shows up within the 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 # i...