[Rails] Re: Fail to pass id to foreign table
Update:
Allright I tried this
resources :games do
member do
get :followers
end
resources :reviews
end
(the member is for following purposes and has nothing to do with
reviews)
Now paths like "new_game_review_path" are generated, but now when I want
to open a view, that contains this helper path, I get this routing
error:
No route matches {:action=>"new", :controller=>"reviews"}
now what kind of method does my review controller need? or should I
adjust my routings a little bit more? But I thought every method in the
reivew controller should be available with these routings :/
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home