On Sun, May 23, 2010 at 9:12 AM, Marnen Laibow-Koser
<li...@ruby-forum.com>wrote:

> John Merlino wrote:
> > Hey all,
> > Does any have suggestions to whether I should create a controller for
> > every web page on my site or just create an action for every web page in
> > same controller if those actions will never require database calls?
>
> Do neither.  Use a single controller action for your static pages, and
> give it the name of the page as a parameter.
>

If the OP is, in fact, talking about static pages, you might consider, for
performance reasons, putting them in a structure under /public and letting
Apache, et.al. deliver them without the involvement of mongrel / passenger /
your rails app.

HTH,
Bill

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to