开发者

Pass the layout param for devise

开发者 https://www.devze.com 2023-02-12 13:56 出处:网络
Is there a way to tell devise to use a specific design, not the layout/application.html.erb ? 开发者_如何学运维I thought I could create a controller class like:

Is there a way to tell devise to use a specific design, not the layout/application.html.erb ?

开发者_如何学运维

I thought I could create a controller class like:

class DeviseController < Devise::SessionsController
  layout 'devise'
end

with a routes like:

devise_for :users, :controllers => { :sessions => "devise" }

but this doesnt work, it gives me a 404.

Shouldn't the extends responds to the methods?


After 2 more minutes I found the answer myself...

http://groups.google.com/group/plataformatec-devise/browse_thread/thread/b83b1dbd864cdb93/9b146e3b64e8c83a

Just add the layout as sessions.html.erb

0

精彩评论

暂无评论...
验证码 换一张
取 消