Class: AsyncFuturize::FuturizeController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/async_futurize/futurize_controller.rb

Instance Method Summary collapse

Instance Method Details

#loadComponentObject



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