-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try to get route set up correctly; ember still not handling the retur…
…ned hash correctly
- Loading branch information
kellen hart
committed
Sep 9, 2013
1 parent
120acb4
commit 799de20
Showing
9 changed files
with
23,182 additions
and
24,608 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
attr = DS.attr | ||
|
||
Pah.Song = DS.Model.extend | ||
# url: 'songs' | ||
name: attr() | ||
id: attr() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Pah.SongRoute = Ember.Route.extend | ||
model: (params) -> | ||
songs.findBy('id', params.song_id) | ||
model: (params) -> songs.findBy('id', params.song_id) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
Pah.SongsRoute = Ember.Route.extend | ||
model: -> @store.findAll('song') | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
# http://emberjs.com/guides/models/defining-a-store/ | ||
|
||
Pah.Store = DS.Store.extend | ||
revision: 11 | ||
adapter: DS.RESTAdapter.create() | ||
|
||
# Pah.Store.registerAdapter('Pah.Songs', DS.RESTAdapter.extend({ | ||
# url: "/songssss" | ||
# })); | ||
# Pah.Store = DS.Store.extend | ||
# revision: 11 | ||
# adapter: DS.RESTAdapter.create() |
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
Oops, something went wrong.