I’m building a form that is not based on a model. The action I want
to happen when I click submit is defined in my controller.
Here’s the form code in the html.erb
<% form_tag ‘/gevents/dotheformstuff/’ do -%>
Is this the best way to proceed, with now me editing my routes file so
that /gevents/dotheformstuff/ get’s thrown to a controller and action
of my choosing?
I’ve been reading about using the form_tag like this
<%= form_tag :action => “create” %>
But my rails is not liking the end_form_tag when I use that. This
might be pre rails 2 code, can someone verify?
It does seem a lot neater to describe the action in the form_tag
rather than edit routes.rb though.
Also, when I do send the data back to the controller, how do I go
about extracting it? I’m not sure of the syntax needed.
Any advice, greatly appreciated.