zombocom / wicked

Use wicked to turn your controller into a wizard

Home Page:http://schneems.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I set a custom view path?

eric-norcross opened this issue · comments

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?

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?