-
Notifications
You must be signed in to change notification settings - Fork 6
v1 Series Notes
Version 1.8.0
Extensive work has been done on layouts which all have been separated for improved app integration and view customization.
(Note: On file exist prompt use n for No so existing file customizations will not be overwritten.)
rails generate mtdevise:views
Mtdevise will generate a mtdevise folder located in your apps layouts location
/views/layouts/mtdevise
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.
#.html.erb
-- This layout covers all user # (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.
Version 1.7.0
For further customization the accounts/index view has a dedicated layout view.
/layouts/mtdevise/accountsindex.html.erb
Run the below command and enter n (for no) "to override" the default views.
** Caution saying y (yes) will override any custom changes made to mtdevise views.
rails generate mtdevise:views
Version 1.6.1
For additional user information v1.6.1 has a new database migration file called 20151231043439_add_firstname_to_mtdevise_accounts.rb
class AddFirstnameToMtdeviseAccounts < ActiveRecord::Migration
def change
add_column :mtdevise_accounts, :firstname, :string
add_column :mtdevise_accounts, :lastname, :string
add_column :mtdevise_accounts, :username, :string
end
end
To install re-run the command below to copy over the additional file.
rake railties:install:migrations
After testing in your development environment make sure to run the migration rake command.
rake db:migrate
Optionally install and override default views.
** Caution this will override any custom changes made to mtdevise views.
rails generate mtdevise:views