Hi Kiran,
your view code like this ;-
<%=check_box_tag(''chk_box_name'', value =
''1'', checked = true,
options = {:class=>''class_name''})%>
you can get value in controller like this :-
variable_name=params[:chk_box_name]
Regards,
Nishant
On Feb 6, 5:04 pm, KiranKinuForU
<PolawarKir...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi all,
>
> I want to know how to use checkbox in rails, i.e. how to
> access value of particular checkbox in controller....
>
> Regards,
> Kiran
>
> polawarkir...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---