Forum: Rails-ES Pasar valor al controlador

Posted by Tomas R. (josetomas_r)
on 2011-01-03 01:32
como puedo pasar un valor desde /view/events/show.html.erb a la accion
signup del controlador event_controler

intente esto:
<%= button_to "Sign Up", {:action => "signup", :value => @event.id} ,
:confirm => "Are you sure?", :method => :post %>

pero no se como capturar el valor @event.id en el controlador
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.