Last active
December 28, 2015 01:38
-
-
Save stevekane/7421605 to your computer and use it in GitHub Desktop.
quick n dirty route problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<ol class="breadcrumb"> | |
<li>{{#link-to "videos"}}Videos{{/link-to}}</li> | |
</ol> | |
</div> | |
<div class="media"> | |
<div class="media-header"> | |
<h3>{{title}}</h3> | |
<h4>{{description}}</h4> | |
<h5>Published on: {{publication_date}}</h5> | |
</div> | |
<video | |
classNames="media-object" | |
height="480" | |
width="640" | |
controls=true | |
{{bind-attr src="mp4_url"}}> | |
</video> | |
</div> | |
<div class="media-footer"> | |
<h4>{{keywords}}</h4> | |
</div> | |
</div> | |
require('routes/Application.js'); | |
require('routes/Videos.js'); | |
require('routes/Video.js'); | |
App.Router.map(function () { | |
this.resource('signup'); | |
this.resource('login'); | |
this.resource('account', function () { | |
this.route('changeEmail'); | |
this.route('changePassword'); | |
this.route('subscribe'); | |
}); | |
this.resource('videos'); | |
this.resource('video', {path: "/videos/:video_id"}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment