hi all, i have creater two controller, if i want to call the second cotroller rhtml page from the first..... how it will be.... if any one knows guide me.... -- 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 -~----------~----~----~----~------~----~------~--~---
Madhankumar Nagaraj wrote:> hi all, > i have creater two controller, if i want to call the second cotroller > rhtml page from the first..... > how it will be.... > if any one knows guide me....Hi, It''s probably not a good idea. Note that you can define some methods in our application.rb, since all controllers inherit from ApplicationController, you will "share'' them amongst all controllers. Regards, -- 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 -~----------~----~----~----~------~----~------~--~---
On 5/30/07, Jean-Etienne Durand <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Madhankumar Nagaraj wrote: > > hi all, > > i have creater two controller, if i want to call the second cotroller > > rhtml page from the first..... > > how it will be.... > > if any one knows guide me.... > > Hi, > > It''s probably not a good idea. Note that you can define some methods in > our application.rb, since all controllers inherit from > ApplicationController, you will "share'' them amongst all controllers. > > Regards, > > -- > Posted via http://www.ruby-forum.com/.Well, in some cases you do want to have common views across controllers, though the way of accessing view files is all the same: render "controller_name/view" which corresponds to: app/views/controller_name/view.rhtml Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---