Advertisement
saasbook

Checkbox form code for HW2

Jan 30th, 2012
21,880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.17 KB | None | 0 0
  1. = form_tag movies_path, :method => :get do
  2.   Include:
  3.   - @all_ratings.each do |rating|
  4.     = rating
  5.     = check_box_tag "ratings[#{rating}]"
  6.   = submit_tag 'Refresh'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement