Hi,

In our project we are using lib file as suggested

file name would be:
lib/action_view_ext.rb

module ActionView
  module Helpers #:nodoc:
    module AssetTagHelper
      def image_path(source)
        compute_public_path(source, 'images')
      end
    end
  end
end

the best way to include the file !always! (doesn't matter if the
application helper is loaded or not)
is to add one line at the end of the

config/environment.rb

the line would be:

require 'lib/action_view_ext.rb'


Cheers

--~--~---------~--~----~------------~-------~--~----~
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