Sha256: b821273175fd01e14c1896414e829388673b2b4c2ddd3f12dc43be592471215c

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

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

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

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

    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/new.html.rb
fortitude-0.9.6 lib/rails/generators/fortitude/scaffold/templates/new.html.rb