On 28 Oct 2008, at 17:46, Rémi Gagnon <[EMAIL PROTECTED] 
s.net> wrote:

>
> I created a file ./lib/action_view/helpers/asset_tag_helper.rb
>
> and put in it only the method I want to override. like this
>
Don't. Create lib/my_module.rb and then include MyModule into  
ActionView::Base. Or it might be more convenient to do this in  
application_helper
> module ActionView
>  module Helpers #:nodoc:
>    module AssetTagHelper
>      def image_path(source)
>        compute_public_path(source, 'images')
>      end
>    end
>  end
> end
>
> But as soon I try this all the others methods from the overriden  
> module
> are not available anymore.
>
> Any idea?
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to