In your case, have the appropriate controller read in the statuses info
and hand that to the view...
@statuses = Status.find(:all, :order => 'something')
Then the view (or a partial) can do something like:
@statuses.each do |this_status|
radio_button("application", "status", this_status.value)
end
or sumfink like that...
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---