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
foo_bar i can use
image_path, a rails helper, without any
problems. It finds the asset int the asset-pipeline and constructs the
When I now add a class inside this module, I cannot access
and therefore my asset, anymore like shown in the following example:
module Foo module Bar class FooBar def foo_bar image_path("my_asset.png") end end end end
I get a
NoMethodError as shown below.
NoMethodError - undefined method `image_url' for
Why can’t I access
image_path anymore, or what changes do I need to
get this working?
Thanks in advance,