hello everyone
I have a question about selection.
template_path
"#{get_plugin_root}/public/converter/templates/#{params[:template]}.xml"
converter_generate(sheet_id,date, output_path, template_path)
template_path argument of the method is taken from selection. least I
want to do it.
my selection is like
<select value=[:template]>
<option value="csv"
id="work_sheet_csv">csv</option>
<option
value="template_of_roster">template_of_roster</option>
<option
value="template_of_roster1">template_of_roster1</option>
<option
value="template_of_roster2">template_of_roster2</option>
<option
value="template_of_roster3">template_of_roster3</option>
</select>
in the view page.
how can I add the selected value to my params[:template].
--
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
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
-~----------~----~----~----~------~----~------~--~---