开发者

Using a separate template for devise

开发者 https://www.devze.com 2023-02-24 15:05 出处:网络
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

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

精彩评论

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