format.js response doesn't execute
Posted
by Denis
on Stack Overflow
See other posts from Stack Overflow
or by Denis
Published on 2010-03-17T20:29:40Z
Indexed on
2010/03/17
20:31 UTC
Read the original article
Hit count: 213
rjs
|ruby-on-rails
Hi,
I use Rails 3.0.0 Beta
following an action, my rjs view returns a javascript, but the code is not executed
In firebug I see in my response
$('polaroids').insert("<li>\n <a title=\"4204497503_a0c43c561d.jpg\" href=\"#\">\n <img alt=\"4204497503_a0c43c561d.jpg\" src=\"/system/photos/279/original/4204497503_a0c43c561d.jpg?1268857318\" />\n <\/a>\n<\/li>")
Here is the response header
Response Headers
Etag "7343b21b2f062fb74b7d5f32e3a83c2c"
Connection Keep-Alive
Content-Type text/javascript; charset=utf-8
Date Wed, 17 Mar 2010 20:21:58 GMT
Server WEBrick/1.3.1 (Ruby/1.8.7/2008-08-11)
X-Runtime 0.060497
Content-Length 220
Cache-Control max-age=0, private, must-revalidate
Set-Cookie _photos_session=BAh7ByIQX2NzcmZfdG9rZW4iMS9OWnpOZUR6UGQ2UDhvbGt5YWpTWXhJcFR2YjRHOEhzZHlIbmdMblRlMWs9Ig9zZXNzaW9uX2lkIiUxNjlhOWYzNjQxODE2N2NjN2FiNmYzY2VkYmU3OTgwYQ%3D%3D--022d7202178b2cc7bf968e558c2ae67ecef1fb74; path=/; HttpOnly
© Stack Overflow or respective owner