[Rails] Re: Cannot access image_path in library class

2014-10-05 Thread Martin Trummer
Sorry, it's not the typo. I changed the example. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-t

Re: [Rails] Cannot access image_path in library class

2014-10-05 Thread Clayton Cottingham
Might be a typo? Your second code snippet has my_assset.png On 5 October, 2014 9:47:23 AM PDT, Martin Trummer wrote: >Hi @ all, > >In a rails application I have a nested module in my library: > >module Foo > module Bar >def foo_bar > image_path("my_asset.png") >e

[Rails] Cannot access image_path in library class

2014-10-05 Thread Martin Trummer
Hi @ all, In a rails application I have a nested module in my library: module Foo module Bar def foo_bar image_path("my_asset.png") end end end Within `foo_bar` i can use `image_path`, a rails helper, without any problems. It finds the asset int the