Closed ericgross closed 8 years ago
I am rendering an HTML file from a cell in an application that mounts Spree as an engine. I want to access spree.new_spree_user_session_path but it is not defined in this context.
spree.new_spree_user_session_path
How can I access a mounted engine's named routes in my cell view?
Pass the spree instance (whatever that is) into the cell.
spree
cell(:comment, @comment, spree: spree)
and use it via options in the cell! :wink:
options
I am rendering an HTML file from a cell in an application that mounts Spree as an engine. I want to access
spree.new_spree_user_session_path
but it is not defined in this context.How can I access a mounted engine's named routes in my cell view?