check box tag

Need some help please!!!

I have a hash that contain a group of post, i render this hash on html. I want that with a checkbox the person can select the post to save it on the database.

Somebody know how to do this, i dont understant the check_box_tag.

Need some help please!!!

I have a hash that contain a group of post, i render this hash on
html. I want that with a checkbox the person can select the post to
save it on the database.

Somebody know how to do this, i dont understant the check_box_tag.

check_box_tag isn't particularly magic. It does just create a checkbox
with the specified name. What's in your hash (what are the keys/values)

Fred

The hash contains an array with post objects, id, title, body

html.erb

<%form_for(:person do |f|)%> <%= check_box(:person,:permanent_employee,:options=>{},:on_value => "1",:off_value => "0")%> <%end>

controller edit_method

html.erb

<%form_for(:person do |f|)%> <%= check_box(:person,:permanent_employee,:options=>{},:on_value => "1",:off_value => "0")%> <%end>

controller edit_method

a small correction in your form

<%form_for(:person) do |f|%>