RJS Template rendering viewable code

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs