Hi there!
I’m a bit of a rails newbie, and I’ve had success as long as I followed
rails conventions and used the form helpers. But now I want to do
something a little different and I’m already stumped. I want to pass
some form data into the controller, but it’s not related to a database
model or anything like that. Here’s what I have in my view:
<%= start_form_tag :action => ‘testing’ %>
<%= submit_tag “Create” %>
<%= end_form_tag %>
I guess I’m not sure how to access the form data named “foo” in the
controller. Is it something sort of like this:
def testing(foo)
@bar = foo
end
Thanks for the help in advanced. I’m guessing this is pretty simple, but
I’m new to ruby, rails, and programming in general.
Dave