Javascript_inlcude_tag :default error

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?

arrggghhhh

Of course it should be

<%= javascript_include_tag :defaults %>
not :default

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.

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

<%= javascript_include_tag :defaults %>

bye,
Tino

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