Getting parameters

Hi i got these parameter in the create controller
Parameters: {“commit”=>“Create Tip”,
“utf8”=>“✓”, “tip”=>{“descripcion”=>“asdf”, “tip”=>“asdf”,
i get these
@tip =[:tip])

puts "Printing @tip[:tiptags_attributes] " =nil
puts @tip.attribute_names


so how i can get  "tiptags_attributes"=>{"0"=>{"tags_id"=>"1"}

cause i want to change tags_id,

well, i try, try and try again i cant get it
params[:tip][:tiptags_attributes][:“0”][:tags_id]=1 whith the code i
can change the attribute

On Thu, Feb 10, 2011 at 3:59 PM, Lorenzo Brito M.

If its a nested attribute you dont need to do any of that

watch this

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs