search for: selected_ratinng

Displaying 1 result from an estimated 1 matches for "selected_ratinng".

Did you mean: selected_rating
2012 Oct 21
2
check box tag binding between controller and the view
...ng==@selected_ratings.each{|s_rating|} = submit_tag ''Refresh'', :id => "ratings_submit" Now what i am trying to do in the controller is that that i wanted to see if the param is empty if it is then i want to check all the values so i create an instance variable @selected_ratinngs and pass all values of rating into. If i have some values selected from the the checkbox then i save those values in the selected_ratings. In the view I am planning to use the selected_rating and in the check_box_tag want to compare the selected_rating with rating to see if its already there then...