Im not sure if form_for is the correct method to use here. I am trying to have a submit button, but I dont want the user to enter information. I want to pass the parameters myself. Is it correct to use form_for here, leave it blank and pass the parameters like so: <% form_for(:admirer, :url => admirers_path, :user_id => @user.id, :admirer_id => session[:user_id]) do |f| -%> <%= submit_tag ''submit %> <% end -%> So I am trying to store the user_id and admirer_id in a admirer object and ultimately the database, but this way does not seem to be working. How do you use a submit button by passing your own parameters? thanks, Sarah --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---