Javascript call fails when it renders a partial which has a javascript call

So I have a setup like this:

Render a view which has a link_to_function which does an insert_html,
and the partial that it inserts has a link_to_function which does
something like a‘alert’, ‘foo’)

The ‘foo’ is, I believe, quoted improperly, thereby causing the first
link_to_function to fail when you click the link. Make sense?

I replicated this on a basic app. Is this a bug or working as
advertised because you’re just not supposed to do stuff like that? I
doesn’t make sense that it shouldn’t work, and I think it’s a bug.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs