开发者

Pass the layout param for devise

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜