The answer is
Continent.find(params[:product]["continent_id"])

in more Steps

first=params[:product]
second=first["continent_id"]
Continent.find(secon)

May be there is a better way as well but any way it works finally.

thanks to for Helping to get on the right way!

Markus Wellmann wrote:
in def update and the parameters witch
> are passed are:
> 
> Parameters: {"commit"=>"Upd.... , 
> "product"=>{"image_url"=>"/images/Burger.png", 
> "expirience_points"=>"10", "price"=>"1.99", "title"=>"WHOPPER®", 
> "description"=>"....", "continent_id"=>"7"}, "id"=>"1", 
> "controller"=>"products"}
> 
> But how do I get now from :product the "continent_id"=>"7"

-- 
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to