Class: AsyncFuturize::FuturizeController
- Inherits:
-
Object
- Object
- AsyncFuturize::FuturizeController
- Defined in:
- app/controllers/async_futurize/futurize_controller.rb
Instance Method Summary collapse
Instance Method Details
#loadComponent ⇒ Object
3 4 5 6 |
# File 'app/controllers/async_futurize/futurize_controller.rb', line 3 def loadComponent locals = { component: params[:component_to_load], component_params: params[:component_params] } render json: { component: params[:component_to_load], html: render_to_string(partial: './futurize_component_ajax', locals: locals) } end |