diff --git a/app/router.js b/app/router.js index 7cc5107..3048e99 100644 --- a/app/router.js +++ b/app/router.js @@ -6,7 +6,9 @@ var Router = Ember.Router.extend({ }); Router.map(function() { - this.route('events'); + this.route('events', function() { + this.route('show', { path: '/:id' }); + }); }); export default Router; diff --git a/app/routes/events/show.js b/app/routes/events/show.js new file mode 100644 index 0000000..d76c0ac --- /dev/null +++ b/app/routes/events/show.js @@ -0,0 +1,7 @@ +import Ember from 'ember'; + +export default Ember.Route.extend({ + model: function(params) { + return this.store.find('event', params.id); + } +}); \ No newline at end of file diff --git a/app/styles/app.scss b/app/styles/app.scss index 66a3762..575d2fb 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -12,6 +12,6 @@ body, html { float: left; } -.events { +ul { list-style: none; } \ No newline at end of file diff --git a/app/templates/events.hbs b/app/templates/events.hbs index 0018ce9..e935939 100644 --- a/app/templates/events.hbs +++ b/app/templates/events.hbs @@ -1,6 +1,13 @@ -