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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Use a session or url encode on the observer Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 03/02/2009, at 4:18 PM, Bobby Vijay <rails-mailing-list@andreas- s.net> 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? > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
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.... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Julian Leviston wrote:> Use a session or url encode on the observer > > Blog: http://random8.zenunit.com/ > Learn rails: 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.... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> can u plz tel me in detail..... thank u....Attachments: http://www.ruby-forum.com/attachment/3246/_add_new_facility.html.erb -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Nope. Perhaps someone else will. Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 03/02/2009, at 5:16 PM, Bobby Vijay <rails-mailing-list@andreas- s.net> wrote:> > Julian Leviston wrote: >> Use a session or url encode on the observer >> >> Blog: http://random8.zenunit.com/ >> Learn rails: 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.... > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---