I tried it to the same result. Here is my new but still not working code: <%= collection_select(:person, :css_theme, Theme.find(:all), :name, :name) %>
On May 11, 7:39 am, "Greg Bovee" <[EMAIL PROTECTED]> wrote: > Would this have > worked:http://wiki.rubyonrails.org/rails/pages/HowtoUseFormOptionHelpers > ? > > > > On Sat, May 10, 2008 at 8:32 PM, mikfig <[EMAIL PROTECTED]> wrote: > > > I am trying to add a feature to my insoshi installation so each user > > can have their own css theme on their profile page. So under the > > signup page I added a dropdown box, but rails doesn't have a function > > like f.text_field for example that can be used to create drop down > > boxes. So I used the following code for this dropdown box instead: > > > <label for="css_theme">Theme</label> > > <select id="person_css_theme" name="person[css_theme]"> > > <% @themes.each do |theme| %> > > <option value="<%= theme.id %>"> > > <%= theme.name %> > > </option> > > <% end %> > > </select> > > But then I'm not sure how to insert the "theme.id" into css_theme > > field in the person table. > > > Any help would be appreciated, > > Thank you, > > Mikael- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ Insoshi developer site: http://dogfood.insoshi.com/ Insoshi documentation: http://docs.insoshi.com/ You received this message because you are subscribed to the Google Groups "Insoshi" 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/insoshi?hl=en -~----------~----~----~----~------~----~------~--~---
