Multiple website section = multiple controllers?

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

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.

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

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 ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs