Forum: Ruby on Rails Render component from other rails app in current rails app..

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Phongphat K. (Guest)
on 2007-02-06 10:17
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. - -"
Jamez (Guest)
on 2007-02-06 12:04
(Received via mailing list)
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-
張衡華 (Guest)
on 2007-02-12 05:15
(Received via mailing list)
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 => %{<span id="#{view}"><p>Loading...</p><script
type="text/javascript"
language="JavaScript">#{remote_function(options)}</script></span>}
end

Regards,
herngwah

On Feb 6, 4:17 pm, Phongphat K. <rails-mailing-l...@andreas-
This topic is locked and can not be replied to.