search for: checkbox_tag

Displaying 4 results from an estimated 4 matches for "checkbox_tag".

Did you mean: check_box_tag
2006 Jun 20
6
checkbox_tag outside a form?
Is it possible to use checkbox_tag outside a form? I''ve put it in a view and it renders but I get nothing back in the params hash. Is there a way to get the value? Like maybe with some JS onsubmit to populate the params hash myself? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed......
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 working any help thanks -- Posted via http://www.ruby-forum.com/.
2006 Jun 27
2
Bug in Firebug or in RJS? Or something else?
I''m getting a really strange result using RJS page.replace_html and wonder if anybody knows anything that could help me figure it out. I''m rendering a partial in a loop in edit.rhtml that puts a set of <div>s on the page, each <div> containing a checkbox_tag with an associated observe_field and a text_field_tag also with an associated observe_field. When the checkbox changes the observe_field shoots an AJAX message back to the controller which, when it''s finished doing its database-update thing, does a render :update do |page| page.replace_ht...
2006 Jun 20
1
Soliciting suggestions - Form within a Form
...ered info from the view back to the controller. Pro: The ''Other'' form processing works fine Con: Since they''re not contained within a form anymore, the checkboxes aren''t serialized and passed to the controller via the params hash. I believe I can use ''checkbox_tag'' instead of ''checkbox'' to get the values back to the controller, but that leaves me with the chore of initializing them for presentation from the values in the summary record. Overall, this path feels non-Railish. Any suggestions would be greatly appreciated. Thanks, B...