Sha256: 2165e79f24f72610093b794bab703a6b5664ef21f48e5669fca1582adc1033c6

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

class Views::<%= plural_table_name.camelize %>::Edit < Views::Base
  needs :<%= singular_table_name %>

  def content
    h1 "Editing <%= singular_table_name.titleize %>"

    widget Views::<%= plural_table_name.camelize %>::Form, :<%= singular_table_name %> => <%= singular_table_name %>

    link_to 'Show', <%= 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/edit.html.rb
fortitude-0.9.6 lib/rails/generators/fortitude/scaffold/templates/edit.html.rb