Sha256: 6306e587371a9f4515ca5a877ddd2de6d3c65480dc2e5686723b7ff63097a74d

Contents?: true

Size: 338 Bytes

Versions: 4

Compression:

Stored size: 338 Bytes

Contents

<%= '# default generated template' %>

class <%= "#{class_name}Form" %> < Faat::Forms::Base
  <% attributes.each do |arg| %>
  <%= "attribute :#{arg.name}, #{arg.type.capitalize}" %><% end %>
  <%= '# add your attributes "attribute :title, String"' %>
  <%= '# and add your validation for forms "validates :title, presence: true"' %>
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
faat-0.1.7 lib/generators/faat/forms/templates/form_template.rb
faat-0.1.6 lib/generators/faat/forms/templates/form_template.rb
faat-0.1.5 lib/generators/faat/forms/templates/form_template.rb
faat-0.1.4 lib/generators/faat/forms/templates/form_template.rb