Sha256: bd078937c8fb77e972fb12d90d185ae6b02c38b1a014425494d911a13b3002a5

Contents?: true

Size: 735 Bytes

Versions: 9

Compression:

Stored size: 735 Bytes

Contents

<h1><%% translate(:editing, :default => "Editing %{model}", :model => <%= class_name %>.human_name, :scope => [:railties, :scaffold]) %></h1>

<%% form_for(@<%= singular_name %>) do |f| %>
  <%%= f.error_messages %>

<% for attribute in attributes -%>
  <p>
    <%%= f.label :<%= attribute.name %> %><br />
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
  </p>
<% end -%>
  <p>
    <%%= f.submit translate(:update, :default => "Update", :scope => [:railties, :scaffold]) %>
  </p>
<%% end %>

<%%= link_to translate(:show, :default => 'Show', :scope => [:railties, :scaffold]), @<%= singular_name %> %> |
<%%= link_to translate(:back, :default => 'Back', :scope => [:railties, :scaffold]), <%= plural_name %>_path %>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
i18n-generators-1.1.3 generators/i18n_scaffold/templates/view_edit.html.erb
i18n-generators-1.1.2 generators/i18n_scaffold/templates/view_edit.html.erb
i18n-generators-1.1.1 generators/i18n_scaffold/templates/view_edit.html.erb
i18n_generators-1.1.0 generators/i18n_scaffold/templates/view_edit.html.erb
i18n_generators-1.0.3 generators/i18n_scaffold/templates/view_edit.html.erb
i18n_generators-1.0.2 generators/i18n_scaffold/templates/view_edit.html.erb
i18n_generators-1.0.1 generators/i18n_scaffold/templates/view_edit.html.erb
i18n_generators-1.0.0 generators/i18n_scaffold/templates/view_edit.html.erb
i18n_generators-1.0.0.pre1 generators/i18n_scaffold/templates/view_edit.html.erb