Skip to content

Commit

Permalink
The "Home" link in the sidebar shouldn't assume the posts controller …
Browse files Browse the repository at this point in the history
…is mapped to the root.
  • Loading branch information
pauldowman authored and xaviershay committed Jan 23, 2010
1 parent 4382241 commit fe54d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/navigation_helper.rb
@@ -1,7 +1,7 @@
module NavigationHelper
def page_links_for_navigation
link = Struct.new(:name, :url)
[link.new("Home", posts_path),
[link.new("Home", root_path),
link.new("Archives", archives_path)] +
Page.find(:all, :order => 'title').collect {|page| link.new(page.title, page_path(page))}
end
Expand Down

0 comments on commit fe54d01

Please sign in to comment.