I've started to figure out how nested ressources are working, but I
get an exception in a (i think so) simple case. The exception is:
"ActionController::MethodNotAllowed - Only get, put, and delete
requests are allowed."
webrick tells me:
127.0.0.1 - - [19/Jul/2008:04:40:55 CEST] "POST /articles/22/comments/
new HTTP/1.1" 405 7131 http://localhost:3000/articles/22 -> /articles/
I see its not a get, put or delete.
map.resources :articles, :has_many => :comments
<%= link_to_remote("new comment",
:update => 'editor',
:url => new_article_comment_path(@article),
:complete => visual_effect(:blind_down,
"editor", :duration => 2.5)) %>
So why didn't I get a get request? Is it a clean code?
I read the RESTful Rails Development from b-simple, but i didn't found
a solution for the problem. Maybe the document is a bit outdated. If
you have any solution for the problem or a URL I would be glad to hear
Thanks for reading and have a nice day,