I''m running rails 1.2.2 with ruby 1.8.5. I have a layout with: <%= javascript_include_tag :default %> which gives this error: can''t dup Symbol However, this works: <%= javascript_include_tag ''prototype'' %> Any ideas what the problem might be? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, it has to be :defaults instead of :default, <%= javascript_include_tag :defaults %> bye, Tino On 3/15/07, Rick <rschumeyer-EkmVulN54Sk@public.gmane.org> wrote:> > > I''m running rails 1.2.2 with ruby 1.8.5. > I have a layout with: > <%= javascript_include_tag :default %> > which gives this error: > can''t dup Symbol > > However, this works: > <%= javascript_include_tag ''prototype'' %> > > Any ideas what the problem might be? > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
arrggghhhh Of course it should be <%= javascript_include_tag :defaults %> not :default On Mar 15, 11:50 am, "Rick" <rschume...-EkmVulN54Sk@public.gmane.org> wrote:> I''m running rails 1.2.2 with ruby 1.8.5. > I have a layout with: > <%= javascript_include_tag :default %> > which gives this error: > can''t dup Symbol > > However, this works: > <%= javascript_include_tag ''prototype'' %> > > Any ideas what the problem might be?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Rick wrote:> I''m running rails 1.2.2 with ruby 1.8.5. > I have a layout with: > <%= javascript_include_tag :default %> > which gives this error: > can''t dup Symbol > > However, this works: > <%= javascript_include_tag ''prototype'' %> > > Any ideas what the problem might be?It''s ":defaults", not ":default" (no quotes). -- Michael Wang --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 15 Mar 2007, at 16:50, Rick wrote:> I''m running rails 1.2.2 with ruby 1.8.5. > I have a layout with: > <%= javascript_include_tag :default %>Typo? Needs an ''s'' at the end <%= javascript_include_tag :defaults %>> which gives this error: > can''t dup Symbol > > However, this works: > <%= javascript_include_tag ''prototype'' %>Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---