Displaying 2 results from an estimated 2 matches for "state_provinc".
Did you mean:
state_province
2009 Jul 31
2
Undefined method updated? for <model object>
Hi,
I have two model say-
ZipCode < ActiveRecord::Base
belongs_to :state_provinces
end
StateProvince < ActiveRecord::Base
has_many :zip_codes
end
if I do @zip_code.update_atribute(:city, "My City")
its giving Undefined method updated? for StateProvince
if I remove belongs_to specifier in ZipCode class then it work fine.
Any alternate solution??
Thanks
--
Regar...
2006 Feb 04
4
AJAX rendered select doesn''t get submitted
...each {|g| g.name = ''- '' + g.name + '' -''}
render(:partial => ''options'')
end
_______________________________________________________________________________
_options.rhtml partial that gets rendered:
<select name="address[state_province]" id="address_state_province"
class="siteText" style="width: 175px;">
<option value="">-- Select State/Province --</option>
<%=
option_groups_from_collection_for_select(@state_groups,
:states, :name, # <- groups...