Skip to content

Commit

Permalink
#16 view helper moved to application helper
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdilek committed Sep 5, 2013
1 parent b39c20a commit 0008243
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
10 changes: 10 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
module ApplicationHelper
def page(title, id)
@page_id = id
content_for :title do
title
end
end

def launcher_active(page)
@page_id == page ? {class:'active'} : {}
end
end
12 changes: 0 additions & 12 deletions app/helpers/view_helpers.rb

This file was deleted.

0 comments on commit 0008243

Please sign in to comment.