Is a controller called "home" sort of a standard or best practice?

32 views
Skip to first unread message

Don Schenck

unread,
Jan 20, 2013, 1:39:45 PM1/20/13
to rubyonra...@googlegroups.com
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??


Dheeraj Kumar

unread,
Jan 20, 2013, 1:49:51 PM1/20/13
to rubyonra...@googlegroups.com
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
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.
 
 

Dave Aronson

unread,
Jan 20, 2013, 3:05:28 PM1/20/13
to rubyonra...@googlegroups.com
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/.

Jordon Bedwell

unread,
Jan 20, 2013, 3:09:49 PM1/20/13
to rubyonra...@googlegroups.com
On Sun, Jan 20, 2013 at 2:05 PM, Dave Aronson
<googlegr...@davearonson.com> wrote:
> On Sun, Jan 20, 2013 at 1:39 PM, Don Schenck <don.s...@gmail.com> 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.

Walter Lee Davis

unread,
Jan 20, 2013, 3:17:20 PM1/20/13
to rubyonra...@googlegroups.com

On Jan 20, 2013, at 3:05 PM, Dave Aronson wrote:

> On Sun, Jan 20, 2013 at 1:39 PM, Don Schenck <don.s...@gmail.com> 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

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 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.

Norbert Melzer

unread,
Jan 20, 2013, 3:21:39 PM1/20/13
to Rails Mailinglist


Am 20.01.2013 21:17 schrieb "Walter Lee Davis" <wa...@wdstudio.com>:

> 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 want to log out to find out.)

Revised and pro eoisides require a membership which is about 10 USD a month.

Bye,
Norbert

tamouse mailing lists

unread,
Jan 21, 2013, 12:34:58 AM1/21/13
to rubyonra...@googlegroups.com
On Sun, Jan 20, 2013 at 2:09 PM, Jordon Bedwell <envy...@gmail.com> 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!!!!
Reply all
Reply to author
Forward
0 new messages