This project is archived and is in readonly mode.
"render :js => '...' " cannot working
Reported by dil | September 13th, 2010 @ 03:42 PM
the response donnt include "application/javascript"
Comments and changes to this ticket
-
Rohit Arondekar September 14th, 2010 @ 05:28 AM
- Importance changed from to Low
Could you please elaborate on the issue?
What steps should I follow to reproduce this?
-
Santiago Pastorino September 14th, 2010 @ 06:27 AM
Can you provide some failing test case, patch or at least a failing application.
Thank you -
dil September 15th, 2010 @ 02:32 AM
thanks
this problem is my error.
in controller i write:
respond_to do |format|format.html { render :js => "...." }
end in client js i send a ajax request with "dataType: 'script'", so the response header include "Content-Type text/html; charset=utf-8", i wanna get script content type, so ...
Now, I change "format.html" to "format.js", the problem is ok.
-
Rohit Arondekar September 15th, 2010 @ 05:28 AM
- State changed from new to invalid
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>