This project is archived and is in readonly mode.

#4246 ✓invalid
z3cko

possible format.js error in rails master (actioncontroller issues) returning array and not string

Reported by z3cko | March 21st, 2010 @ 07:39 PM | in 3.0.2

there is a discussion on the haml group which i started, which is related to responses when rendering js with rails3.

to reproduce:

1) create a link_to @foo, :remote => true
2) create a js responder in the controller: format.js { render :update do |p| p.reload end}
3) see the output in the patched and in the unpatched version. ( http://j.mp/aFHyu4 )

the error output:

NoMethodError (undefined method `html_safe' for ["alert(\"foo! 
\");"]:Array):

we don't really know why the result is an array and not a string,
please also see the discussion in the haml list
http://groups.google.com/group/haml/browse_thread/thread/89593b0fdb...

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages