Render component from other rails app in current rails app


#1

Can I render component from other rails app in current rails app?
example::
app A want to render component from app B.

ps.I’m weak in english. - -"


#2

Try posting your question on refwell.com. You might get your answer
there
James

On Feb 6, 9:17 am, Phongphat K. <rails-mailing-l…@andreas-


#3

You can try this helper; (put in application_helper.rb, use by view)
it make an ajax call from given url.

def render_remote(url, view = ‘remote’)
options = {}
options[:update] = view
options[:url] = url
options[:method] = :get
render :inline => %{

Loading…

#{remote_function(options)}}
end

Regards,
herngwah

On Feb 6, 4:17 pm, Phongphat K. <rails-mailing-l…@andreas-