Sha256: f2fa6bde2cab15f4af3ddc0b286d3d0eb61f65eaeb441aecfaae998c94a15f71

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

<% @title = "Edit #{controller.model_name.humanize.downcase}" %>
<h1><%= @title %></h1>
<% form_for record, :url => resource_path, :html => {:multipart => true} do |f| %>
  <%= hidden_field_tag :edit_locale, params[:edit_locale] if params[:edit_locale] %>

  <%= render :partial => 'terbium/form', :locals => { :f => f, :action => 'edit' } %>
<% end %>
<% content_for :additional_navigation do %>
  <ul class="buttons">
    <% 0.upto(resource_ancestors_records.length - 1) do |i| %>
      <li><%= link_to resource_ancestors[i].to_s.pluralize.humanize, polymorphic_path([route_prefix] + resource_ancestors_records[0..i-3] + [resource_ancestors[i].to_s.pluralize]) %></li>
      <li><%= link_to resource_ancestors_records[i].to_title, polymorphic_path([route_prefix] + resource_ancestors_records[0..i]) %></li>
    <% end %>
    <% if plural? %>
      <li><%= link_to controller.model_name.pluralize.humanize, resources_path %></li>
    <% else %>
      <li><%= link_to resource.humanize, resource_path %></li>
    <% end %>
  </ul>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puffer-0.0.5 app/views/puffer/edit.html.erb
puffer-0.0.4 app/views/puffer/edit.html.erb
puffer-0.0.3 app/views/puffer/edit.html.erb
puffer-0.0.2 app/views/puffer/edit.html.erb