Forked from tschmidt/Rails simple_format and auto_link.rb
Created
August 5, 2012 14:13
-
-
Save Epictetus/3265050 to your computer and use it in GitHub Desktop.
Rails simple_format and auto_link weirdness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This does not appear to recognize the :target => "_blank" when the page is rendered | |
simple_format(auto_link(@task.description, :html => { :target => "_blank" })) | |
# However, this works fine | |
auto_link(simple_format(@task.description), :html => { :target => "_blank" }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment