Sha256: 94d1b4c3865d8befdb38548b7368bd421ce0b8beaee5a88f162f9a09a00245a9
Contents?: true
Size: 961 Bytes
Versions: 2
Compression:
Stored size: 961 Bytes
Contents
<% @title = "New #{resource.human}" %> <h1><%= @title %></h1> <%= form_for record, :url => resource.index_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.0.7 | app/views/puffer/new.html.erb |
puffer-0.0.6 | app/views/puffer/new.html.erb |