Rails 3.0.9 and escape_javascript stil not working?

You need to wrap your %= escape_javascript(...) % part in quotes.

Up vote 0 down vote favorite share g+ share fb share tw.

Running into a strange problem. I was sure that it used to work and is fixed in this version (github.com/rails/rails/issues/1553). I have a simple controller class MessagesController {:id => "post_submit_form", :remote => true} do |f|%> 'post' %> "button post" %> a create.js.

Erb file for rendering the html: $('#pending_item'). Html( 'stream_item'))%>); Using jquery 1.6.1 and latest rails. Js I keep getting parsererror in firebug by binding to ajax:error.

I think is a problem with escape_javascript as if it just do the following it works great: $('#pending_item'). Html('hello'); I know that partial works as it is use repeatedly to display the when the page loads. Additionaly if I just have: hello in the partial I have the same parsererror I am sure I am using 3.0.9 as it says this when I start the app: Rails 3.0.9 application starting in development on http://0.0.0.0:3000 Any ideas?

Jquery ruby-on-rails ruby ruby-on-rails-3 link|improve this question asked Jul 14 '11 at 14:54user287839798 71% accept rate.

You need to wrap your part in quotes: $('#pending_item'). Html(" 'stream_item'))%>").

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions