Forum: Ruby on Rails RJS Template rendering viewable code

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Hugh Kelsey (Guest)
on 2006-02-02 20:17
(Received via mailing list)

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.

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.

This topic is locked and can not be replied to.