Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allowing static views for page files as well as db-backed ones for users
- Loading branch information
Showing
5 changed files
with
19 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
class Page < ActiveRecord::Base | ||
|
||
def to_param | ||
"#{id}-#{title.parameterize}" | ||
end | ||
|
||
end |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% | ||
some_markdown = %{ | ||
# Init Script Installation | ||
|
||
The concerto-init.d script should be copied to /etc/init.d/concerto and installed with update-rc.d and concerto defaults | ||
invoke-rc.d concerto start | ||
|
||
} | ||
%> | ||
<% @markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :autolink => true, :space_after_headers => true) %> | ||
<%=raw @markdown.render(some_markdown) %> |
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,4 +1,3 @@ | ||
pages: | ||
- title: "Concerto Init.d Startup Script" | ||
category: Setup | ||
body: "The concerto-init.d script should be installed to /etc/init.d/concerto" |