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.”
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
it g
u can do like this
in ur routes file
map.resources :articles do |article|
article.resources :comments
end
in ur view
for article in @article
ur - stuff —
<%= link_to_remote(“new comment”,
:update => ‘editor’,
new_article_comment_path(article),
:complete => visual_effect(:blind_down,
“editor”, :duration => 2.5)) %>
end
thans for your answer, but it didn’t helps :-(. I changed the lines in
my lines in routes.rb to:
map.resources :articles do |article|
article.resources :comments
end
thans for your answer, but it didn’t helps :-(. I changed the lines in
my lines in routes.rb to:
map.resources :articles do |article|
article.resources :comments
end
Well, it looks like a problem with js, but I haven’t figured out
what’s wrong. currently i’ve deactevated the visual effect and
use :url to generate the url. It’s not great, but it works.