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
on 07.03.2008 13:29
on 07.03.2008 19:34
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?
on 08.03.2008 20:25
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-developers-rails-engines.org > > > > > _______________________________________________ > Engine-Developers mailing list > Engine-Developers@lists.rails-engines.org > 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
on 22.03.2008 07:33
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
on 01.04.2008 20:46
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-developers-rails-engines.org > -- Perity Studios (http://perity.com) a division of Inimit Inc. (http://inimit.com) Nathaniel Steven Henry Brown 604-724-6624