Sha256: 70d1018f525a9123b3f3c0868a48a5e0e1a37973524a72025fb2ee73d1cece6b

Contents?: true

Size: 556 Bytes

Versions: 2

Compression:

Stored size: 556 Bytes

Contents

class Views::<%= plural_table_name.camelize %>::Show < Views::Base
  needs :<%= singular_table_name %>, :notice => nil

  def content
    p notice, :id => :notice

<% attributes.reject { |a| a.respond_to?(:password_digest?) && a.password_digest? }.each do |attribute| -%>
    p {
      strong "<%= attribute.human_name %>:"
      text <%= singular_table_name %>.<%= attribute.name %>
    }
<% end %>

    link_to "Edit", edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
    text " | "
    link_to 'Back', <%= index_helper %>_path
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fortitude-0.9.6-java lib/rails/generators/fortitude/scaffold/templates/show.html.rb
fortitude-0.9.6 lib/rails/generators/fortitude/scaffold/templates/show.html.rb