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