Sha256: 1ba2b06f59670902cdf2e45a390baaae0b93a5c5546217effed2cd0548167f4f
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 Bytes
Contents
<%% if @<%= singular_table_name %>.valid? %> hideModal(); if ($(".<%= plural_table_name %>.list").length) { $(".nodata").hide(); $(".<%= plural_table_name %>").show(); $("<%%= j render(@<%= singular_table_name %>, formats: [:html]) %>").prependTo(".<%= plural_table_name %> tbody").effect("highlight"); } else { window.location.href = "<%%= url_for @<%= singular_table_name %> %>"; } <%% else %> $("#errorExplanation").remove(); $("<%%= j error_messages_for("<%= singular_table_name %>") %>").prependTo("#new_<%= singular_table_name %>"); <%% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redmine-generators-0.0.1 | lib/redmine/generators/templates/rails/scaffold/create.js.erb |