Chris Richards
2008-Feb-12 18:42 UTC
link_to :application=>"app2", :controller=>.., :action=>...
Wouldn''t this be good?? : link_to :application=>"app2", :controller=>"app2controller", :action=>"action" or form_tag :application=>"app2", :controller=>"app2controller", :action=>"action" do ... end I run many rails applications and the ability to link_to the other apps as simply as this would be great. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Daniel Van den oord
2008-Feb-12 19:48 UTC
Re: link_to :application=>"app2", :controller=>.., :action=>...
Chris Richards wrote:> Wouldn''t this be good?? : > > link_to :application=>"app2", :controller=>"app2controller", > :action=>"action" > > or > > form_tag :application=>"app2", :controller=>"app2controller", > :action=>"action" do > ... > end > > I run many rails applications and the ability to link_to the other apps > as simply as this would be great.as you always have another domain name or sub dir for each rails app you should be able to do <%= link_to "link to another rails app", "http://someting.com/app2controller", :action=>"action" %> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
idleFingers
2008-Feb-12 23:06 UTC
Re: link_to :application=>"app2", :controller=>.., :action=>...
But, without being able to access the other app''s routes, it wouldn''t be able to do anything special and wouldn''t do what you''re normal ''link_to'' links are capable of.. then if it could access the other app''s routes, what if they conflicted with each other? That''d be a bugger to debug & maintain, IMO. On Feb 12, 6:42 pm, Chris Richards <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Wouldn''t this be good?? : > > link_to :application=>"app2", :controller=>"app2controller", > :action=>"action" > > or > > form_tag :application=>"app2", :controller=>"app2controller", > :action=>"action" do > ... > end > > I run many rails applications and the ability to link_to the other apps > as simply as this would be great. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Chris Richards
2008-Feb-13 02:38 UTC
Re: link_to :application=>"app2", :controller=>.., :action=>
idleFingers wrote:> But, without being able to access the other app''s routes, it wouldn''t > be able to do anything special and wouldn''t do what you''re normal > ''link_to'' links are capable of.. then if it could access the other > app''s routes, what if they conflicted with each other? That''d be a > bugger to debug & maintain, IMO. >well, if you could access the other apps routes, then you would just have to make sure you didn''t have conflicting routes. Surely a plugin would be able to easily detect conflicts just from comparing routes? and if it detected any then just warn the user. I think this is a great idea. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---