Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Article editing and saving now works w00t!
- Loading branch information
1 parent
d0e3b0c
commit 1e64387
Showing
10 changed files
with
104 additions
and
56 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
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
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
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,14 +1,14 @@ | ||
|
||
<script type="text/x-jquery-template" title="blogs"> | ||
<div id="blogs"> | ||
<% $.each(self, function(index, blog) { %> | ||
<span class="blog" blog_id="<%= blog.id %>"><%= partial("blog", blog) %></span> | ||
<% }); %> | ||
</div> | ||
<div id="blogs"> | ||
<% $.each(self, function(index, blog) { %> | ||
<span class="blog" blog_id="<%= blog.id %>"><%= partial("blog", blog) %></span> | ||
<% }); %> | ||
</div> | ||
</script> | ||
|
||
<script type="text/x-jquery-template" title="blog"> | ||
<div class="blog"> | ||
<%= self.name %> | ||
</div> | ||
<div class="blog"> | ||
<%= self.name %> | ||
</div> | ||
</script> |
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 |
---|---|---|
|
@@ -6,7 +6,9 @@ | |
article.resources :comments | ||
end | ||
end | ||
|
||
resources :articles | ||
resources :comments | ||
|
||
all_slices | ||
|
||
match('/'). | ||
|
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,8 @@ | ||
function context () { | ||
user(); | ||
admin(); | ||
} | ||
|
||
function admin () { | ||
// Admin specific overrides | ||
} |
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
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
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,8 @@ | ||
function context () { | ||
user(); | ||
} | ||
|
||
function user () { | ||
// User specific overrides, edit | ||
} | ||
|
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