bradpotts / multi-tenancy-devise

mtdevise adds basecamp style user logins to your ruby on rails application.
https://phcnetworks.net
MIT License
29 stars 6 forks source link

Give Accounts/Index Screen Own Layout #19

Closed bradpotts closed 8 years ago

bradpotts commented 8 years ago

The layouts for Accounts is too generalized. On every action except Index will show accounts layout and the index will show accountindex layout.

bradpotts commented 8 years ago

def resolve_accounts_layout case action_name when "index", "create" "accountsindex" else "index" "accounts" end end

bradpotts commented 8 years ago

layout :resolve_accounts_layout

bradpotts commented 8 years ago

Done. https://github.com/PHCNetworks/multi-tenancy-devise/commit/06506042a39cf479b46b8e39faac5c6614faf1f1