Javascript_inlcude_tag :default error


#1

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?


#2

arrggghhhh

Of course it should be

<%= javascript_include_tag :defaults %>
not :default


#3

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 W.


#4

Hi,
it has to be :defaults instead of :default,

<%= javascript_include_tag :defaults %>

bye,
Tino


#5

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