Multiple website section = multiple controllers?


#1

Hi!

I am totally new to ruby on rails and dynamic website creation (never
done php or asp).

I am reading “Agile Web D. with Rails” by D.Thomas, and I am
wondering if I need to create multiple scaffold and controllers to be
able to create a really basic CMS.

Part of the website needed:

-http://www.domain.com/
-http://www.domain.com/about/
-http://www.domain.com/articles/
-http://www.domain.com/contact/
etc…

do I need to create a scaffold and controller for about, articles,
contact…?

Sorry for my bad english, and please be kind with me, I have very
limited dynamic site knowledge.

Thank you!!


#2

You don’t necessarily need multiple controllers, it just depends on
how you want it laid out.

One controller could possibly handle all of this:

Maybe on controller for articles, the other for pages (about, contact,
etc).

You can use routes to manipulate the urls as you need them.


#3

yes you are right, multiple controllers = multiple pages = multiple urls
(as
you listed them)


#4

Roberto S. wrote:

yes you are right, multiple controllers = multiple pages = multiple urls
(as
you listed them)

Does it have a bad effect on loading performance ?