Google Groups

Regarding forms

venkat Sep 5, 2011 1:52 PM
Posted in group: Ramaze

         I am trying to use forms to create a signon page with password reset and regsiter buttons included. I have three divs with jquery buttons. I have a name / value pair for each button so I can check on the server side which button was pressed. How ever, when I use the statement below the request goes back to the server when I load the page as opposed to when I click the button. How can I achieve the desired behaviour ? 

<?r form_for(@user, :method => :post, :action => MainController.r(process)) do |form| ?>

// All the input elements, labels and buttons are listed in here. 

<?r end ?>

Venkat R Akkineni
585 489 3259