开发者

Using a separate template for devise

Is there a way I can use a sepa开发者_JS百科rate template for devise login view(devise gem)


See this Railscast for help: http://asciicasts.com/episodes/210-customizing-devise

You can run a 'rails generate devise_views' and all of your views will show up in a 'devise' folder.

The Login page will be under devise/sessions/new.html.erb


You can run the generator which will create all the necessary template files in app/views/devise.

$ rails generate devise:views

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜