Hi folks,
Thanks in advance to everyone who's helped me in the past. Can someone
help me understand why the following select_tag method in my helper is
not updating the database, but the select method is? I couldn't figure
it out from the API documentation on form overrides, and just wanted
to see if someone could help me get over this syntax speed bump.
def entity_type_form_column(record, options)
@types = EntityMonitor.find(:all, :select => 'distinct
entity_type', :order => 'entity_type')
@types.collect! {|monitor| monitor.entity_type}
#select_tag("entity_type", options_for_select(@types,
record.entity_type))
select :record, :entity_type, @types, {:include_blank => "--
select--"}
end
Thanks a lot!
Jay
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.