# Wierd Error for image\_tag

**URL:** <https://www.ruby-forum.com/t/wierd-error-for-image-tag/131259>\
**Category:** Engines Development\
**Created:** [March 7, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/wierd-error-for-image-tag/131259 "2008-03-07T13:29:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [March 7, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/wierd-error-for-image-tag/131259/1 "2008-03-07T13:29:00Z")

</div>

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:in `path\_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:in `image\_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](http://perity.com)) a division of Inimit Inc.  
([http://inimit.com](http://inimit.com))  
Nathaniel Steven Henry Brown  
604-724-6624

---

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [March 7, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/wierd-error-for-image-tag/131259/2 "2008-03-07T19:34:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [March 8, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/wierd-error-for-image-tag/131259/3 "2008-03-08T20:25:25Z")

</div>

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

Any other ideas?

On 3/7/08, Todd N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > `image\_tag’
> 
> [http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org](http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org)
> 
> > 
> 
> * * *
> 
> Engine-Developers mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org](http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org)

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

---

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [March 22, 2008, 7:33am UTC](https://www.ruby-forum.com/t/wierd-error-for-image-tag/131259/4 "2008-03-22T07:33:03Z")

</div>

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](http://dev.rubyonrails.org/ticket/10361).

Cheers,  
=vg

---

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [April 1, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/wierd-error-for-image-tag/131259/5 "2008-04-01T20:46:06Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> =vg
> 
> * * *
> 
> Engine-Developers mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org](http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org)

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