[Rails] Re: problem with select_tag and observe_field

2009-05-27 Thread Vikas Gholap
Frederick Cheung wrote: On May 27, 9:03�am, Vikas Gholap rails-mailing-l...@andreas-s.net wrote: Here i get @subscription_types object nil , when I render _plan_pricing.html.haml first time. Please tell me where i am doing wrong. Does the plan_pricing action set @subscription_types to

[Rails] Re: problem with select_tag and observe_field

2009-05-27 Thread Vikas Gholap
Vikas Gholap wrote: Frederick Cheung wrote: On May 27, 9:03�am, Vikas Gholap rails-mailing-l...@andreas-s.net wrote: Here i get @subscription_types object nil , when I render _plan_pricing.html.haml first time. Please tell me where i am doing wrong. Does the plan_pricing action set

[Rails] Re: problem with select_tag and observe_field

2009-05-27 Thread Vikas Gholap
Frederick Cheung wrote: On May 27, 12:24�pm, Vikas Gholap rails-mailing-l...@andreas-s.net wrote: �= render :partial = 'businesses/refresh_subscription_types', :layout = �'false' i am not understanding what is this error. And there is no such file by name _false.erb in my businesses view

[Rails] Re: problem with select_tag and observe_field

2009-05-27 Thread Julian Leviston
I fixed that syntax error 'false' to false but still getting same error You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.collect for = select_tag 'subscription',

[Rails] Re: Problem with select_tag

2009-02-27 Thread vimal
i guess the select tag should be represented as form.select_tag --~--~-~--~~~---~--~~ 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@googlegroups.com To

[Rails] Re: Problem with select_tag

2009-02-27 Thread Thiti Panya
vimal wrote: i guess the select tag should be represented as form.select_tag thank a lot but i used it , i have error this this undefined method `select_tag' for #ActionView::Helpers::FormBuilder:0xb788a2a4 -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Problem with select_tag

2009-02-27 Thread vimal
use it as a symbol :organelle rather than as a string organelle make sure the :organelle field is made available in ur model seqfeature --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Re: Problem with select_tag

2009-02-27 Thread Sijo Kg
change like %= form.select :organelle, ([, mitochondrion, nucleomorph, plastid, mitochondrion: kinetoplast, plastid: chloroplast, plastid: apicoplast, plastid: chromoplast, plastid: cyanelle, plastid: leucoplast, plastid: protoplastid ]) % and it will submit to the create action of

[Rails] Re: Problem with select_tag

2009-02-27 Thread vimal
I am a little busy for better understanding http://guides.rails.info/form_helpers.html --~--~-~--~~~---~--~~ 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

[Rails] Re: Problem with select_tag

2009-02-27 Thread thitima panyayai
thank you very much ,i can fix it -__- 2009/2/27 Sijo Kg rails-mailing-l...@andreas-s.net change like %= form.select :organelle, ([, mitochondrion, nucleomorph, plastid, mitochondrion: kinetoplast, plastid: chloroplast, plastid: apicoplast, plastid: chromoplast, plastid: cyanelle,

[Rails] Re: Problem with select_tag

2009-02-26 Thread Gonzalo Cao
Jinal Jhaveri wrote: You can do something like this: select_tag('new_member', options_for_select(['']...@group.logins_not_in_group)) As you see you can add blank ('') as a new option. perfect dude! I was looking exactly for this -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Problem with select_tag

2009-02-26 Thread Thiti Panya
Thiti Panya wrote: i create drop-down memu for organelle by using select_tag but problem is can't get value for form select_tag to database seqfeature but form.text_field ,it's work , i don't understand why? pls help me ## code