Wierd Error for image_tag

I am getting a strange error on image_tag and not really sure where it
came from, other than my upgrade to Rails 2.0.

Here is the line:

45: <%= image_tag(‘buttons/remove.png’) %>

Here is the error:

wrong number of arguments (2 for 3)

Here is the stack:

/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/asset_tag_helper.rb:345:in
compute_public_path' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/asset_tag_helper.rb:345:inpath_to_image’
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/asset_tag_helper.rb:385:in
image_tag_without_engine_additions' vendor/plugins/engines/lib/engines/rails_extensions/asset_helpers.rb:93:inimage_tag’

Versions:

Rails 2.0.2
Engines: Trunk

Any ideas why I’m all of a sudden getting this error? The same thing
happens when I use this as well:

<%= image_tag(‘buttons/remove.png’, :plugin => ‘toolbawks_store’) %>


Perity Studios (http://perity.com) a division of Inimit Inc.
(http://inimit.com)
Nathaniel Steven Henry Brown
604-724-6624

Not sure. I had a similar issue where I had a corrupted cache that my
eclipse dev environment fouled up. Can you delete everything in temp
and
try it again?

Just checked and the ./project/tmp dir and sub dirs contain no files.

Any other ideas?

On 3/7/08, Todd N. [email protected] wrote:

`image_tag’

http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org


Engine-Developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org


Perity Studios (http://perity.com) a division of Inimit Inc.
(http://inimit.com)
Nathaniel Steven Henry Brown
604-724-6624

Nathaniel B. wrote:

I am getting a strange error on image_tag and not really sure where it
came from, other than my upgrade to Rails 2.0.

wrong number of arguments (2 for 3)

I cured this problem in my own setup by removing the asset_packager
plugin. See the discussion at http://dev.rubyonrails.org/ticket/10361.

Cheers,
=vg

Thanks Victor. Figured that out after some digging. Realized it was a
ghosted wrapper that I couldn’t track down as to what was mutating the
method on me.

On Fri, Mar 21, 2008 at 6:29 AM, Victor G. [email protected]
wrote:

=vg


Engine-Developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org


Perity Studios (http://perity.com) a division of Inimit Inc.
(http://inimit.com)
Nathaniel Steven Henry Brown
604-724-6624

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs