views:

34

answers:

1

I am trying to build a survey app in rails 3. Basically I need to make a wa yi to accept responses from a set of questions. (surveys have many questions and responses.) I got it to render but when I submit it it sends as a put instead of a post. So is there any way I can add a custom put route to my response controller?

+1  A: 
# routes.rb
put '/surveys/:id' => 'surveys#update'

Assumes SurveysController has method update.

Justice