Forum: Ruby on Rails RJS Template rendering viewable code

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4d47944ad8359101bccb0a798cd9acf1?d=identicon&s=25 Hugh Kelsey (Guest)
on 2006-02-02 19:17
(Received via mailing list)
Hi,

I'm adding some RJS templates to my application and everything seams
to function properly except the final rendering shows the javascript
code created by the template and what I think are line breaks. The
same partial is used in two other places and seams to work fine when
called from an RHTML file.

Rendered:
new Effect.Fade('job14',{}); Element.update("bookings", "
\r\nJob 22-33 21 Feb 20:00 4.0 Hrs. \r\n Some Hotel \r\n\r\n

I'm running off edge and have updated my scripts, any help would be
greatly appreciated.

Hugh
This topic is locked and can not be replied to.