lib/generators/para/install/templates/components.rb in para-0.5.4 vs lib/generators/para/install/templates/components.rb in para-0.6.2
- old
+ new
@@ -1,13 +1,17 @@
Para.components.draw do
# Create a components section in the menu with a :menu identifier
# You can translate the section title at: components.section.menu
#
# section :menu do
- #
- # # Create a component of type :crud in the the section :menu, with the
- # # identifier :pages, with the model 'Page' as the target type and
- # # namespacing it's managed to resources to the component
+ # # Creating crud components can be done the following way
# #
- # component :pages, :crud, model_type: 'Page', namespaced: true
+ # component :pages, :crud
+ # component :members, :crud, model_type: 'User'
+ # component :news, :crud, model_type: 'Page', namespaced: true
+
+ # # Creating a component allowing you to edit a single resource is done
+ # # with the `singleton_resource` component, the following way
+ # #
+ # component :home, :singleton_resource, model_type: 'HomePage'
# end
end