hmmm... I am little lost... I have the following form:
<form name="form_options" id="form_options">
<span class="selecter">Job Type<br/><%= select
("JobType", "id",
JobType.find(:all, :order => "priority").collect {|jt|
["#{jt.name}",
jt.id] }) %></span>
<span class="selecter">Job Status<br/><%= select
("JobStatus", "id",
JobStatus.find(:all, :order => "priority").collect {|js|
["#{js.name}", js.id] }) %></span>
</form>
<%= observe_form :form_options, :url => {:action =>
"save_job_type_and_status"} %>
In my controller I want to get at the JobType and JobStatus ids. For
some odd reason trying all the usual suspects does not work. Any
sugestions?
params[:JobType][:id]?
Please help :-)
--
John Kopanas
john-Iau1QiYlxLpBDgjK7y7TUQ@public.gmane.org
http://www.kopanas.com
http://www.cusec.net
http://www.soen.info
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---