# Check box issue

**URL:** <https://www.ruby-forum.com/t/check-box-issue/159288>\
**Category:** Rails\
**Created:** [February 3, 2009, 6:18am UTC](https://www.ruby-forum.com/t/check-box-issue/159288 "2009-02-03T06:18:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobby04](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bobby04](https://www.ruby-forum.com/u/bobby04)\
**Post date:** [February 3, 2009, 6:18am UTC](https://www.ruby-forum.com/t/check-box-issue/159288/1 "2009-02-03T06:18:37Z")

</div>

Code: html  
\<%= check\_box “other\_facility”, “others” %\> Other Facilities  
\<%= observe\_field(:other\_facility\_others,  
:update =\> :other\_facility,  
:url =\> { :action =\> :others}) %\>  
I have used this code… i’m getting the action correctly but still i’m  
having one issue…

if i click tat check box again , tat action has to hide… i don know  
how to fix this…

and also having some check boxes, if i click this box it ll work using  
ajax and i save this other field into my database and i show all check  
box fields in my view…

here the issue is if i click some check boxes and also click the other  
box, the old check box values are refreshed, i don know how to get the  
checked value of the  
check boxes…

can u plz help me?

---

<div class="post-metadata">

**Author:** ![bobby04](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bobby04](https://www.ruby-forum.com/u/bobby04)\
**Post date:** [February 3, 2009, 6:37am UTC](https://www.ruby-forum.com/t/check-box-issue/159288/2 "2009-02-03T06:37:31Z")

</div>

Use a session or url encode on the observer

Blog: [http://random8.zenunit.com/](http://random8.zenunit.com/)  
Learn rails: [http://sensei.zenunit.com/](http://sensei.zenunit.com/)

On 03/02/2009, at 4:18 PM, Bobby Vijay \<rails-mailing-list@andreas-

---

<div class="post-metadata">

**Author:** ![bobby04](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bobby04](https://www.ruby-forum.com/u/bobby04)\
**Post date:** [February 3, 2009, 6:50am UTC](https://www.ruby-forum.com/t/check-box-issue/159288/3 "2009-02-03T06:50:16Z")

</div>

Bobby Vijay wrote:

> Code: html  
> \<%= check\_box “other\_facility”, “others” %\> Other Facilities  
> \<%= observe\_field(:other\_facility\_others,  
> :update =\> :other\_facility,  
> :url =\> { :action =\> :others}) %\>  
> I have used this code… i’m getting the action correctly but still i’m  
> having one issue…
> 
> if i click tat check box again , tat action has to hide… i don know  
> how to fix this…
> 
> and also having some check boxes, if i click this box it ll work using  
> ajax and i save this other field into my database and i show all check  
> box fields in my view…
> 
> here the issue is if i click some check boxes and also click the other  
> box, the old check box values are refreshed, i don know how to get the  
> checked value of the  
> check boxes…
> 
> can u plz help me?

can u plz tel me in detail… thank u…

---

<div class="post-metadata">

**Author:** ![bobby04](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bobby04](https://www.ruby-forum.com/u/bobby04)\
**Post date:** [February 3, 2009, 7:22am UTC](https://www.ruby-forum.com/t/check-box-issue/159288/4 "2009-02-03T07:22:26Z")

</div>

> can u plz tel me in detail… thank u…

---

<div class="post-metadata">

**Author:** ![bobby04](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bobby04](https://www.ruby-forum.com/u/bobby04)\
**Post date:** [February 3, 2009, 7:16am UTC](https://www.ruby-forum.com/t/check-box-issue/159288/5 "2009-02-03T07:16:13Z")

</div>

Julian L. wrote:

> Use a session or url encode on the observer
> 
> Blog: [http://random8.zenunit.com/](http://random8.zenunit.com/)  
> Learn rails: [http://sensei.zenunit.com/](http://sensei.zenunit.com/)
> 
> On 03/02/2009, at 4:18 PM, Bobby Vijay \<rails-mailing-list@andreas-

can u plz tel me in detail… thank u…

---

<div class="post-metadata">

**Author:** ![bobby04](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bobby04](https://www.ruby-forum.com/u/bobby04)\
**Post date:** [February 3, 2009, 7:45am UTC](https://www.ruby-forum.com/t/check-box-issue/159288/6 "2009-02-03T07:45:57Z")

</div>

Nope. Perhaps someone else will.

Blog: [http://random8.zenunit.com/](http://random8.zenunit.com/)  
Learn rails: [http://sensei.zenunit.com/](http://sensei.zenunit.com/)

On 03/02/2009, at 5:16 PM, Bobby Vijay \<rails-mailing-list@andreas-
