fixes #163: Linking to wiki pages yield an error

This commit is contained in:
albert
2011-10-26 18:41:12 -04:00
parent aa1443da6e
commit 20639a001e

View File

@@ -56,7 +56,7 @@ class WikiPagesController < ApplicationController
end
def show_or_new
@wiki_page = WikiPage.find_by_name(params[:title])
@wiki_page = WikiPage.find_by_title(params[:title])
if @wiki_page
redirect_to wiki_page_path(@wiki_page)
else