Get value of checkbox

hi,
i need to pass the value of a checkbox (simple boolean value 0/1) to a
rails action. how do i do that. the value has nothing todo with any
model used. i just want to pass the priority the mail should be sent,
without storing this value in the model. here my code

Urgent: <%= check_box “priority”, 1, 0) %>

Body:

<%= link_to ‘Send’, :controller => “newsletters”, :action =>
“sendmails”, :id => @newsletter, :priority => priority %>

is there some way which includes javascript? i have no form tag wrapped
around the code, because its in the show.erb.

thanks in advance

On Sep 2, 8:40 am, John D. [email protected] wrote:

<%= link_to ‘Send’, :controller => “newsletters”, :action =>
“sendmails”, :id => @newsletter, :priority => priority %>

is there some way which includes javascript? i have no form tag wrapped
around the code, because its in the show.erb.

You’re really better off sticking a form in there - it’s by far the
easiest way to do this, it is after all what forms were designed to
do.

Fred