Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Commit

Permalink
pages? i guess
Browse files Browse the repository at this point in the history
  • Loading branch information
metermaid committed Feb 24, 2015
1 parent c767b3e commit 520a786
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class PagesController < ApplicationController
include HighVoltage::StaticPage

before_filter :set_menuitem

private
def set_menuitem
@menu_item = params[:id]
end
end
8 changes: 8 additions & 0 deletions app/views/pages/help.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<section>
<h1>Help</h1>

<p>To add a bookmark, you can either use the "New Bookmark" link above or the following bookmarklet:</p>

<p><%= link_to "Bookmarklet", render("shared/bookmarklet.js", formats: [:js]) %></p>

</section>
3 changes: 3 additions & 0 deletions config/initializers/high_voltage.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
HighVoltage.configure do |config|
config.routes = false
end

0 comments on commit 520a786

Please sign in to comment.