Don Schenck
2013-Jan-20 18:39 UTC
Is a controller called "home" sort of a standard or best practice?
Is it pretty much a standard, best practice or just a good idea to create a controller called "home" and put, say, my web sites home page (''index.html.erb'') there?? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/8v5wrCaLGyMJ. For more options, visit https://groups.google.com/groups/opt_out.
Dheeraj Kumar
2013-Jan-20 18:49 UTC
Re: Is a controller called "home" sort of a standard or best practice?
Well, the name of the controller can differ, but yes, that''s how most apps render their homepage. -- Dheeraj Kumar On Monday 21 January 2013 at 12:09 AM, Don Schenck wrote:> Is it pretty much a standard, best practice or just a good idea to create a controller called "home" and put, say, my web sites home page (''index.html.erb'') there?? > > > -- > 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 (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/8v5wrCaLGyMJ. > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Dave Aronson
2013-Jan-20 20:05 UTC
Re: Is a controller called "home" sort of a standard or best practice?
On Sun, Jan 20, 2013 at 1:39 PM, Don Schenck <don.schenck-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is it pretty much a standard, best practice or just a good idea to create a > controller called "home" and put, say, my web sites home page > (''index.html.erb'') there??Some call it home, some call it welcome, root, etc, whatever. It is common practice to have SOME kind of controller, just because you need a controller (unless the page is completely static), to hold common top-level pages like Home, About, Terms & Conditions, Privacy Policy, "Thanks for visiting, come back soon" (i.e., you just logged out), etc. etc. etc. -Dave -- Dave Aronson, the T. Rex of Codosaurus LLC, secret-cleared freelance software developer taking contracts in or near NoVa or remote. See information at http://www.Codosaur.us/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Jordon Bedwell
2013-Jan-20 20:09 UTC
Re: Is a controller called "home" sort of a standard or best practice?
On Sun, Jan 20, 2013 at 2:05 PM, Dave Aronson <googlegroups2dave-BRiZGj7G2yRXqviUI+FSNg@public.gmane.org> wrote:> On Sun, Jan 20, 2013 at 1:39 PM, Don Schenck <don.schenck-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Is it pretty much a standard, best practice or just a good idea to create a >> controller called "home" and put, say, my web sites home page >> (''index.html.erb'') there?? > > Some call it home, some call it welcome, root, etc, whatever. It is > common practice to have SOME kind of controller, just because you need > a controller (unless the page is completely static), to hold common > top-level pages like Home, About, Terms & Conditions, Privacy Policy, > "Thanks for visiting, come back soon" (i.e., you just logged out), > etc. etc. etc.One action to rule them all, one action to find them. One action to bring them all and in the darkness bind them. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Walter Lee Davis
2013-Jan-20 20:17 UTC
Re: Is a controller called "home" sort of a standard or best practice?
On Jan 20, 2013, at 3:05 PM, Dave Aronson wrote:> On Sun, Jan 20, 2013 at 1:39 PM, Don Schenck <don.schenck-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Is it pretty much a standard, best practice or just a good idea to create a >> controller called "home" and put, say, my web sites home page >> (''index.html.erb'') there?? > > Some call it home, some call it welcome, root, etc, whatever. It is > common practice to have SOME kind of controller, just because you need > a controller (unless the page is completely static), to hold common > top-level pages like Home, About, Terms & Conditions, Privacy Policy, > "Thanks for visiting, come back soon" (i.e., you just logged out), > etc. etc. etc. > > -DaveNaturally, Ryan Bates has a RailsCast about this: http://railscasts.com/episodes/117-semi-static-pages http://railscasts.com/episodes/117-semi-static-pages-revised (That second one might require a membership to see, not sure, didn''t want to log out to find out.) Walter> > -- > Dave Aronson, the T. Rex of Codosaurus LLC, > secret-cleared freelance software developer > taking contracts in or near NoVa or remote. > See information at http://www.Codosaur.us/. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Norbert Melzer
2013-Jan-20 20:21 UTC
Re: Is a controller called "home" sort of a standard or best practice?
Am 20.01.2013 21:17 schrieb "Walter Lee Davis" <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org>:> Naturally, Ryan Bates has a RailsCast about this: > > http://railscasts.com/episodes/117-semi-static-pages > http://railscasts.com/episodes/117-semi-static-pages-revised > > (That second one might require a membership to see, not sure, didn''t wantto log out to find out.) Revised and pro eoisides require a membership which is about 10 USD a month. Bye, Norbert -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
tamouse mailing lists
2013-Jan-21 05:34 UTC
Re: Is a controller called "home" sort of a standard or best practice?
On Sun, Jan 20, 2013 at 2:09 PM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> One action to rule them all, one action to find them. One action to > bring them all and in the darkness bind them.PREEEECCCCIIIIOUUUUSSSSSSS!!! MY PREEECCCCIOUUUSSSSSSSSSS!!!! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.