In my create.js.erb view I am creating a new model in the view. On
creation I want to have the appended partial in the dom and
selectable
so I can click it’s name and run the plugin REST in place with
Jquery.
#create.js.erb
$("#new_show").before(’
<%= escape_javascript
(flash.delete(:notice)) %>
’);(flash.delete(:notice)) %>
$("#shows").append("<%= escape_javascript(render(:partial => @show))
%>").effect(“highlight”, {}, 3000);
$(".rest_in_place").livequery(‘click’, function(){rest_in_place()});
$("#new_show")[0].reset();
The portion below so far does nothing. Just my tests to see what I can
try and bind.
$(".rest_in_place").livequery(‘click’, function(){rest_in_place()});
It would be nice if there was a simple bindEverything(); if I am
mistaken in this entire approach please tell me so.
Thank you.