[Rails] Re: custom action in Rails 3

2011-09-22 Thread Tim Shaffer
That query is nothing to worry about. It's just rails running a query to figure out which tables you have in your database so it can figure out which columns they have so it can make your models work properly. In production it should only run once (when the server is first started). But then

[Rails] Re: custom action in Rails 3

2011-09-21 Thread Tim Shaffer
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). -- You

[Rails] Re: custom action in Rails 3

2011-09-21 Thread Ichiro Saga
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