Tim Shaffer wrote in post #1023170: > You have the route specified to only accept POST requests, but by using > link_to, you're creating a hyperlink that generates a GET request. > > You'll need to either change your routes to accept a GET request, or > change > your method of calling the URL to a POST request (from a form).
Thanks Tim. I tried both and they work! But I noticed that it generated one more sql query when a GET request's sent than that when a POST request's sent. <-[1m<-[35mSQL (0.0ms)<-[0m SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Where is it from and is it possible to skip it? -- Posted via http://www.ruby-forum.com/. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

