Permalink
Browse files

Fixed broken rails 2 link_to helper

  • Loading branch information...
viseztrance committed Dec 20, 2010
1 parent c69e4fd commit 266ef7a2f968ef377a36f7f32c9a0429a4a1707b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails-2/link.rb
View
@@ -25,7 +25,7 @@ def link_to(*args, &block)
href_attr = "href=\"#{url}\"" unless href
if button_options
- image = tag :img, { :alt => name, :src => MagicDoor::Helpers::generate_and_get_path!(name, button_options)}
+ image = tag :img, { :alt => name, :src => MagicDoorHelper.new(name, button_options).generate_and_get_path! }
"<a #{href_attr}#{tag_options}>#{image}</a>"
else
"<a #{href_attr}#{tag_options}>#{name || url}</a>".html_safe

0 comments on commit 266ef7a

Please sign in to comment.