On Thu, Jan 5, 2012 at 5:18 PM, Craig White <craig.wh...@ttiltd.com> wrote:
> > app/views/permissions/add_member.js.erb > $('#privileges').replaceWith("<%= escape_javascript(render(@permissions)) > %>"); > Sorry if my question is not about the main problem but, could you explain why are you using .replaceWith()? Usually I use $("#myDiv").html("<%= escape_javascript(render "partial", locals)%> Do you find replaceWith() better than html() ?? Thanks in advance Javier -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.