This is just a guess: try
$("#article_<%= @article.id %>").html("<%= escape_javascript(
render('admin/articles/form') ) %>");
Phil
On Mon, Feb 14, 2011 at 12:14 PM, Fernando Perez <[email protected]>wrote:
> > You would probably be better off skipping RJS and just putting straight
> > jQuery into your template, and just name the template edit.js.erb
>
> Ok, so I had figured out that right.
>
> But I don't understand why the update of a div works with a dummy string
> "foo" and does not happen with more stuff such as a form!?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.