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.

> It
> doesn't make sense to create a controller/model for a single web page if
> it isn';t going to require sql.

That's poor reasoning.

> However, I do need the url to actual
> show the different page just as in any site. So I'm just curious what
> are best practices to approach this. Thanks for any response.

You can use routing to make the URLs be anything you like.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
-- 
Posted via http://www.ruby-forum.com/.

-- 
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