ziamie
2011-Mar-18 16:59 UTC
undefined local variable or method `calendar_date_select_includes'' for #<ActionView::Base:0x7bfd920>
Here''s what I did: 1. gem install calendar_date_select 2. Then in my environment.rb I put: config.gem "calendar_date_select" 3. And in my template file: <%= javascript_include_tag "prototype" %> <%= calendar_date_select_includes %> But still an error posts like this : undefined local variable or method `calendar_date_select_includes'' for #<ActionView::Base: 0x7bfd920> My ruby is 1.9.2 rails 2.3.5 gems 1.5.2 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Mar-18 17:41 UTC
Re: undefined local variable or method `calendar_date_select_includes'' for #<ActionView::Base:0x7bfd920>
On 18 Mar 2011, at 16:59, ziamie <jennypalarca-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Here''s what I did: > > 1. gem install calendar_date_select > > > 2. Then in my environment.rb I put: > config.gem "calendar_date_select" > > 3. And in my template file: > <%= javascript_include_tag "prototype" %> > <%= calendar_date_select_includes %>Did you restart the app after changing environment.rb? Fred> > But still an error posts like this : undefined local variable or > method `calendar_date_select_includes'' for #<ActionView::Base: > 0x7bfd920> > > My ruby is 1.9.2 rails 2.3.5 gems 1.5.2 > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.