templates/scaffold_controller.js in eyeballs-0.3.2 vs templates/scaffold_controller.js in eyeballs-0.3.3
- old
+ new
@@ -6,12 +6,9 @@
var <%= name.downcase %> = <%= name.downcase.pluralize %>[id];
o_O.render('<%= name.downcase.pluralize %>/_<%= name.downcase %>', <%= name.downcase %>, {append: 'div#<%= name.pluralize %>'})
}
});
},
- new: function(){
- o_O.render('<%= name.downcase.pluralize %>/new', {}, {before: 'div#<%= name.pluralize %>'})
- },
create: function(){
var <%= name.downcase %> = <%= name.capitalize %>.initialize(o_O.params($(this)));
var form = $(this);
<%= name.downcase %>.save({
invalid: function(<%= name.downcase %>){
\ No newline at end of file