Class: ActionBlocks::FormBlocksController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- ActionBlocks::FormBlocksController
- Defined in:
- app/controllers/action_blocks/form_blocks_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Instance Method Details
#record ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/action_blocks/form_blocks_controller.rb', line 6 def record form = ActionBlocks.find(params[:block_key]) record_id = Integer(params[:record_id]) render json: form.record_to_json(user: current_user, record_id: record_id) end |