Ruby on Rails Thursday, October 3, 2013

Your view that has the link link_to 'Pin'  already binds the event and points to the new action so you won't need to bind the event again to this link in new.js.erb.

Conclusion is your new.js.erb has problems.
Replace your new.js.erb code with the following:

 $('a.pinbutton').parent().append('<%= escape_javascript(render("select")) %>')


regards,
Sur
crimson9.com

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/193a08cd-21b7-4a15-8c52-f9942bc76130%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment