Forum: Rails Engines development Wierd Error for image_tag

00e3a96684ab390a350b0271e98741d3?d=identicon&s=25 Nshbrown Nshbrown (nshb)
on 2008-03-07 13:29
(Received via mailing list)
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) a division of Inimit Inc.
(http://inimit.com)
Nathaniel Steven Henry Brown
604-724-6624
57ca262d3f80efadc5163d5e1875c1ee?d=identicon&s=25 Todd Nine (Guest)
on 2008-03-07 19:34
(Received via mailing list)
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?
00e3a96684ab390a350b0271e98741d3?d=identicon&s=25 Nshbrown Nshbrown (nshb)
on 2008-03-08 20:25
(Received via mailing list)
Just checked and the ./project/tmp dir and sub dirs contain no files.

Any other ideas?

On 3/7/08, Todd Nine <todd.nine@gmail.com> wrote:
> >
> >
> > `image_tag'
> >
> >
> http://lists.rails-engines.org/listinfo.cgi/engine...
> >
>
>
> _______________________________________________
>  Engine-Developers mailing list
>  Engine-Developers@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine...
>
>


--
Perity Studios (http://perity.com) a division of Inimit Inc.
(http://inimit.com)
Nathaniel Steven Henry Brown
604-724-6624
7cbf29513bdc1225ad3b46dfc2d1aee3?d=identicon&s=25 Victor Grey (victorgrey)
on 2008-03-22 07:33
(Received via mailing list)
Nathaniel Brown 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
00e3a96684ab390a350b0271e98741d3?d=identicon&s=25 Nshbrown Nshbrown (nshb)
on 2008-04-01 20:46
(Received via mailing list)
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 Grey <vg@customdynamic.net>
wrote:
>  =vg
>
>  _______________________________________________
>  Engine-Developers mailing list
>  Engine-Developers@lists.rails-engines.org
>  http://lists.rails-engines.org/listinfo.cgi/engine...
>



--
Perity Studios (http://perity.com) a division of Inimit Inc.
(http://inimit.com)
Nathaniel Steven Henry Brown
604-724-6624
This topic is locked and can not be replied to.