Sha256: 5105e747e0e2bbf9857ac45307178d5d797113f6b553c935e3d278ff44d63ca7
Contents?: true
Size: 966 Bytes
Versions: 8
Compression:
Stored size: 966 Bytes
Contents
<% @title = "New #{resource.human}" %> <h1><%= @title %></h1> <%= form_for record, :url => resource.collection_path, :html => {:multipart => true} do |f| %> <%= render :partial => 'terbium/form', :locals => { :f => f, :action => 'new' } %> <% end %> <% if false %> <% 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 %> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems