Skip to content

Commit

Permalink
fixed bug when title and search are not passed in current_name
Browse files Browse the repository at this point in the history
  • Loading branch information
qhoxie committed Jan 16, 2009
1 parent e71fa68 commit 1706040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/articles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def file

private
def current_name
@name ||= (params[:search] || params[:title] || nil).gsub("_", " ")
@name ||= (params[:search] || params[:title]).gsub("_", " ") rescue nil
end

end

0 comments on commit 1706040

Please sign in to comment.