I have some text that contains both HTML markup (eg, "<...")
and HTML entities (eg, "<..."). The entities pass through
display OK, but show up in the textarea converted to markup
characters.
Here's the edit() method:
def edit(id)
puts '=====>> edit' #T
save_message(message)
only_provides :html
@page = Page.by_p_uuidc(:key => id)[0]
raise NotFound unless @page
STDERR.puts "@[email protected]_text}" #T
@title = @page.p_title
foo = display @page
STDERR.puts "foo=#{foo}" #T
foo
end
Here's the relevant view code:
<p><%= text_area(@page.p_text,
:name => :text,
:cols => 80,
:rows => 40) %></p>
Here's the relevant trace output:
...
<b>Note:</b>
If it looks like
"<% ... %>", "<%= ... %>",
"[% ... %]", or "[%= ... %]",
you've run into eRuby (Embedded Ruby) markup.
...
Here's what shows up in the edit page's textarea:
...
<b>Note:</b>
If it looks like
"<% ... %>", "<%= ... %>",
"[% ... %]", or "[%= ... %]",
you've run into eRuby (Embedded Ruby) markup.
...
Comments and suggestions welcome...
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume [email protected]
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Technical editing and writing, programming, and web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---