module AsyncFuturize class FuturizeController < ApplicationController 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 end end