Joined February 2014
·

Tyler Collier

Phoenix AZ USA
·
·

Posted to BeforeRender Concern for Rails over 1 year ago

This is great. It even follows standard rails conventions, so I can use :only and :except, like:

whitelabel_pages = [:new]
before_render whitelabel, only: whitelabel_pages
Posted to Easily namespace your Rails models over 1 year ago

I was wondering how to generate the "namespaced" (at least prefixed) tables though through a Rails migration. This site had this suggestion, which works:

$ rails g model admin/user

You don't have any dates anywhere on this page, not even in comments! So I'm not sure how long ago this was written. But if you're using UI-Router, it's pretty easy. Here's a sample indx.html that shows it in action. https://github.com/angular-ui/ui-router/blob/master/sample/index.html

Note the

<title ng-bind="$state.current.name">My App name - this text will be replaced</title>
Achievements
7 Karma
0 Total ProTip Views
Interests & Skills