TODO: Write this
Notes:
modelis an ApplicationModel or similar (e.g. ActiveType, but not guarantted to work at this point),.model_nameis importantdatacan be model or models- To redirect instead of rendering, use
before_renderif the redirect is conditional (e.g. if validation passes), orrespondif always redirecting.- As a rule of thumb, use
before_renderif there is acontentblock (even by inheritance) andrespondotherwise.
- As a rule of thumb, use
- To protect a custom controller by compony authentication, use in the controller:
before_action Compony.authentication_before_action
Feature sets:
- Base feature: Components
- replace routes, views and controllers
- actions
- params and nesting
- skipping authentication
- lifecycle
- standalone
- resourcefulness
- authorization
- Buttons and links
- labelling
- coloring
- Fields and field groups
- Feasibility
- Premade components
- button
- destroy
- form
- with_form
- new
- edit