On Jul 23, 2009, at 12:37 PM, Ritvvij wrote:
> > Does anyone know this? please... > > On Jul 23, 10:39 am, Ritvvij <[email protected]> wrote: >> Hi, >> >> Presently I am using drop down with following function >> <%= task_form.collection_select :task_type, >> @task_types, :id, :display_value %> >> It basically gives me ability to have drop down based on an array of >> objects >> >> I am looking for a similar radio buttons function which will allow me >> to only give it an array and the GUI will render it into radio >> buttons. >> >> Can someone please assist? It doesn't look like anyone's answered this so far... You'll have to write your own helper to provide this functionality. A place to begin your research on how to implement it is in the Rails code itself, actionpack/lib/action_view/helpers/form_options_helper.rb, and look at how collection_select is implemented. If you come up with a great solution, a plugin, gem or fork or Rails would be great to share it back. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

