Displaying 1 result from an estimated 1 matches for "moods_control".
Did you mean:
mod_control
2006 Feb 22
8
filtering "tags" via checkboxes - HABTM
...My def results needs some help. I''m lost in the woods. Any insight
would be very appreciated. Code below:
Don
Here''s an excerpt of the error that might helpful.
Parameters: {"commit"=>"Show Tracks", "moods"=>["1", "2"]}
MOODS_CONTROLLER.RB
def results
params[:moods].each do
#@my_id=mood
end
mood = Mood.find(4) # hard coded for a single query.
@tracks_by_mood = mood.tracks
end
LIST.RHTML
<h1>Moods</h1>
<p>Select a mood or moods below to see a list of track with those
moods<...