Skip to content

Instantly share code, notes, and snippets.

@stevekane
Last active December 28, 2015 01:38
Show Gist options
  • Save stevekane/7421605 to your computer and use it in GitHub Desktop.
Save stevekane/7421605 to your computer and use it in GitHub Desktop.
quick n dirty route problem
<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