Skip to content

Commit

Permalink
Don't overescape in pagination helpers
Browse files Browse the repository at this point in the history
Actually, this doesn't work out of the box with
current rails master without the following patch
or something to that effect: http://is.gd/cFj9b
  • Loading branch information
snusnu committed Jun 7, 2010
1 parent 5858081 commit 44d4496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/rails_metrics_helper.rb
Expand Up @@ -28,8 +28,8 @@ def next_link
# Add pagination to footlinks # Add pagination to footlinks
def paginate! def paginate!
content_for :rails_metrics_footlinks do content_for :rails_metrics_footlinks do
content_tag(:p, [previous_link, pagination_info, next_link].join(" | ")) << content_tag(:p, [previous_link, pagination_info, next_link].join(" | "),nil,false) <<
content_tag(:p, "Show per page: #{show_per_page [10, 25, 50, 100]}") content_tag(:p, "Show per page: #{show_per_page([10, 25, 50, 100])}",nil,false)
end end
end end
end end
Expand Down

0 comments on commit 44d4496

Please sign in to comment.