search for: checbox

Displaying 2 results from an estimated 2 matches for "checbox".

Did you mean: checkbox
2006 Jun 29
1
search action/ in different groups
...nil # no search @user_pages, @users = paginate :users, :include => :groups, :order => ''lastname'' , :per_page => 10 else # search done @groups.each {|group| if params["group#{id}"] == "on" #checbox is checked associated_group = Group.find(g.id) @users << associated_group } @users end end end but every time i put in a search query i get this (now) annoying message : undefined method `update'' for "dfasdf":String even though i...
2006 Jul 03
9
checkboxes
in the mean time i am using a checkbox like this : <input type="checkbox" name="var[car]" <%= var.car ? ''checked'' : '''' unless @var == nil %> /> but i am sure there is something better than this in rails like <%= checkbox_tag ''var'', ''car'', :checked => true %> but this is not