class Pettanr.StorySheet extends Peta.Leaf\r
- @single: () ->\r
+ url: '/story_sheets/'\r
+ \r
+ @singular: () ->\r
'StorySheet'\r
\r
@plural: () ->\r
'StorySheets'\r
\r
defaults: {\r
- id: 11\r
+ id: null,\r
+ story_id: null,\r
+ sheet_id: null,\r
+ t: null\r
} \r
\r
initialize: () ->\r
- confirm("Welcome to Panel")\r
+ if @id\r
+ @url = @url + @id\r
\r
-\r
+class Pettanr.StorySheet.Collection extends Backbone.Collection\r
+ model: Pettanr.StorySheet\r
+ url: '/story_sheets'\r