How can I set a custom view path?
eric-norcross opened this issue · comments
Eric Norcross commented
Say I have Users::StepsController
which, by default would search in /app/views/users/steps
for the template of the matching step.
How can I specify that I want it instead to use a different path? For instance /app/views/wizards/user_sign_up/steps
Currently I'm using:
def self.controller_path
'wizards/user_sign_up/steps'
end
but was wondering if there was a better way?
Richard Schneeman commented
That's not a feature that currently exists. Or rather if it exists it's a feature of Rails and not of wicked. Can you change the controller name?