Sunday, January 20, 2013

Re: [Rails] 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@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/.

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate