Joined February 2014
·
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
Posted to
AngularJS : Change title based on Route
over 1 year
ago
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
Charity
Fork and commit to someone's open source project in need
This is great. It even follows standard rails conventions, so I can use
:only
and:except
, like: