Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: app/filters/url_filters.rb
- ===================================================================
- --- app/filters/url_filters.rb (revision 2334)
- +++ app/filters/url_filters.rb (working copy)
- @@ -5,11 +5,11 @@
- include ActionView::Helpers::AssetTagHelper
- def link_to_article(article, text = nil)
- - content_tag :a, h(text || article['title']), :href => article['url']
- + content_tag :a, (text || article['title']), :href => article['url']
- end
- def link_to_page(page, section = nil, text = nil)
- - content_tag :a, h(text || page['title']), page_anchor_options(page, section)
- + content_tag :a, (text || page['title']), page_anchor_options(page, section)
- end
- def link_to_comments(article)
- @@ -17,7 +17,7 @@
- end
- def link_to_section(section, text = nil)
- - content_tag :a, h(text || section['name']), :href => section['url'], :title => section['title']
- + content_tag :a, (text || section['name']), :href => section['url'], :title => section['title']
- end
- def img_tag(img, options = {})
Add Comment
Please, Sign In to add comment