Forum: Ruby on Rails Is a controller called "home" sort of a standard or best practice?

Posted by Don Schenck (Guest)
on 2013-01-20 19:40
(Received via mailing list)
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??
Posted by Dheeraj Kumar (Guest)
on 2013-01-20 19:50
(Received via mailing list)
Well, the name of the controller can differ, but yes, that's how most 
apps render their homepage.

--
Dheeraj Kumar
Posted by Dave Aronson (Guest)
on 2013-01-20 21:07
(Received via mailing list)
On Sun, Jan 20, 2013 at 1:39 PM, Don Schenck <don.schenck@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

--
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/.
Posted by Jordon Bedwell (Guest)
on 2013-01-20 21:10
(Received via mailing list)
On Sun, Jan 20, 2013 at 2:05 PM, Dave Aronson
<googlegroups2dave@davearonson.com> wrote:
> "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.
Posted by Walter Davis (walterdavis)
on 2013-01-20 21:19
(Received via mailing list)
On Jan 20, 2013, at 3:05 PM, Dave Aronson wrote:

> "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
Posted by Norbert Melzer (Guest)
on 2013-01-20 21:22
(Received via mailing list)
Am 20.01.2013 21:17 schrieb "Walter Lee Davis" <waltd@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
Posted by tamouse mailing lists (Guest)
on 2013-01-21 06:36
(Received via mailing list)
On Sun, Jan 20, 2013 at 2:09 PM, Jordon Bedwell <envygeeks@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!!!!
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.