Skip to content

App Integration Layouts (Views)

Brad Potts edited this page Feb 14, 2016 · 6 revisions

As of version 1.8.0 mtdevise has improved layouts customization abilities.

Generate/Regenerate Views

(Note: On file exist prompt use n for No so existing file customizations will not be overwritten.)

rails generate mtdevise:views  

Custom Layouts Location

Mtdevise will generate a mtdevise folder located in your apps layouts location

/views/layouts/mtdevise

Custom Layout Description

accounts.html.erb
-- Accounts view covers general devise views not listed below.

accountsindex.html.erb
-- User's acounts list page directly after a "subdomainless" signin.

application.html.erb
-- General view to cover any remaining views not listed below.

dashboard.html.erb
-- User index view directly after a signin using a subdomain.

signin.html.erb
-- This layout covers all user signin (account login) pages.

signup.html.erb
-- This layout covers all user signup (account registration) page.

useredit.html.erb
-- This layout is for the edit user information (account edit) page.

welcome.html.erb
-- This layout is the root page, it can be used as a site's landing page.

Note: accountedit.html.erb is phased out for useredit.html.rb and can be removed.