lib/generators/katapult/app_model/templates/lib/katapult/application_model.rb in katapult-0.4.1 vs lib/generators/katapult/app_model/templates/lib/katapult/application_model.rb in katapult-0.5.0
- old
+ new
@@ -1,10 +1,10 @@
# In this file, you model your application. Refer to the README or get inspired
# by the full-fledged example below (which you can generate right away).
# Define a model + generate views with CRUD actions
-# Since this generates the first web UI with an index action, the products list
-# will become the home page of the generated app
+# The products list will become the home page of the generated app, because it
+# (implicitly) defines the first index action.
crud 'product' do |product|
# The first attribute of each model is taken as a human identifier/label
product.attr :title # Default type "string"
# The order of attributes is respected when generating the form for that model