Created
October 6, 2010 17:55
-
-
Save ramontayag/613780 to your computer and use it in GitHub Desktop.
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
# HAML view | |
= f.text_area :javascript, :description => "Javascript typed here will come out in this page's javascript's section.", :rows => 20, :cols => 50, 'data-bespinoptions' => %q({ "syntax": "js" }).html_safe | |
# Output | |
<textarea cols="50" data-bespinoptions="{ "syntax": "js" }" description="Javascript typed here will come out in this page's javascript's section." id="page_javascript" name="page[javascript]" rows="20"></textarea> |
FYI: Rails 2.3.8, I've tried with and without rails-xss (thus the .html_safe and raw code up there), in both erb and haml templates.
Oh, and yes, in case you know bespin, I know that { "syntax": "js" } is incomplete.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
outputs the same thing too. Let me try an html.erb file to see if it's haml that's causing the problem :o