I want the show.rhtml to generate a drop down list (I''ll deal with
populating that list later). What''s the syntax please to generate a
drop-
down list?
All code at: <http://strawr.googlecode.com/svn/>
Here''s what I have:
thufir@arrakis ~/Desktop $
thufir@arrakis ~/Desktop $ tail strawr/app/views/feeds/show.rhtml
<%= start_form_tag :action => ''record'', :id =>
@category %>
<p>
<%= text_field ''category'',
''category''%>
</p>
<%= submit_tag ''Record!'' %>
<%= end_form_tag %>
thufir@arrakis ~/Desktop $
thanks,
Thufir
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Quoting Thufir <hawat.thufir-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > I want the show.rhtml to generate a drop down list (I''ll deal with > populating that list later). What''s the syntax please to generate a drop- > down list? >See the select helpers. http://rails.rubyonrails.com/ has nice documentation. HTH, Jeffrey --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Tue, 25 Dec 2007 15:44:18 -0600, Jeffrey Taylor wrote:> See the select helpers. http://rails.rubyonrails.com/ has nice > documentation.Thanks, it certainly gets me started. I have an empty list and am now working on a query of the "categories" table to populate the list with all the categories: thufir@arrakis ~/Desktop/strawr $ thufir@arrakis ~/Desktop/strawr $ tail app/views/feeds/show.rhtml -n 2 <select name="categories[category_ids][]" multiple="multiple"> thufir@arrakis ~/Desktop/strawr $ <http://strawr.googlecode.com/svn/trunk/app/views/feeds/show.rhtml> thanks, Thufir --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---