Class: Formily::FormTypesController
- Inherits:
-
FormilyController
- Object
- ActionController::Base
- FormilyController
- Formily::FormTypesController
- Defined in:
- app/controllers/formily/form_types_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
15 16 17 18 19 20 |
# File 'app/controllers/formily/form_types_controller.rb', line 15 def create form_type = Formily::FormType.new(form_type_params) form_type.save redirect_to formily_form_types_path end |
#destroy ⇒ Object
30 31 32 33 |
# File 'app/controllers/formily/form_types_controller.rb', line 30 def destroy @form_type.destroy redirect_to formily_form_types_path end |
#edit ⇒ Object
22 23 |
# File 'app/controllers/formily/form_types_controller.rb', line 22 def edit end |
#index ⇒ Object
7 8 9 |
# File 'app/controllers/formily/form_types_controller.rb', line 7 def index @form_types = Formily::FormType.all end |
#new ⇒ Object
11 12 13 |
# File 'app/controllers/formily/form_types_controller.rb', line 11 def new @form_type = Formily::FormType.new end |
#update ⇒ Object
25 26 27 28 |
# File 'app/controllers/formily/form_types_controller.rb', line 25 def update @form_type.update(form_type_params) redirect_to formily_form_types_path end |