Hi Jay, it s quite easy to solve your problem Try out both versions and take a look in firebug how your actually produced html code looks like and take a look at the differences
Hope that helps. -- Volker On Jul 21, 4:32 pm, Jay <[email protected]> wrote: > 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.
