All right, thanks for pointing that out.

I simply used
<%= debug @review %>

in my new-View of the reviews controller.

Revieweing a game works by clicking on the "review" button in 
"game#show".

So having <%= debug @review %> in game#show, game_id receives it's 
proper id, but once I open the new Form (which is the url reviews/new) 
there is no number behind the reviews game_id.

So what can I do about it? I guess I have to modify my Routings, because 
rating works directly on game#show, while reviewing opens it's own page.

how do I pass the game ID to the review model in my routes?
So far all I have is "resources :reviews" :/

-- 
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+unsubscr...@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.


Reply via email to