Skip to content

Helpers current_user & current_account

Brad Potts edited this page Mar 12, 2016 · 1 revision

User information can be inserted into your app using current_user or current_account helper methods.

User Information

Users Email

<%= current_user.email %>

Users Gravatar Image

<%= image_tag current_user.gravatar_url %>

Account Name

<%= current_account.name %>

Account First Name

<%= current_account.firstname %>

User's Last Name

<%= current_account.lastname %>

User's Username

<%= current_account.username %>

Subdomain

<%= current_account.subdomain %>

Default Box Padding

#loginbox {margin-top:50px;}  

Tips for Customization

  • Subengine uses twitter bootstrap framework and fontawesome for icons.
  • Subengine views can be generated into your mainapp for customization.
  • Subengine has improved layout customization ( See Custom Views Layouts )