weirdmonkey
2006-Mar-19 16:35 UTC
[Rails] 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 Development 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!! -- Posted via http://www.ruby-forum.com/.
Michael Gorsuch
2006-Mar-19 17:18 UTC
[Rails] Multiple website section = multiple controllers ?
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. On 3/19/06, weirdmonkey <info@modchip-montreal.com> wrote:> Hi! > > I am totally new to ruby on rails and dynamic website creation (never > done php or asp). > > I am reading "Agile Web Development 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!! > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Roberto Saccon
2006-Mar-19 17:24 UTC
[Rails] Multiple website section = multiple controllers ?
yes you are right, multiple controllers = multiple pages = multiple urls (as you listed them) On 3/19/06, weirdmonkey <info@modchip-montreal.com> wrote:> > Hi! > > I am totally new to ruby on rails and dynamic website creation (never > done php or asp). > > I am reading "Agile Web Development 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!! > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Roberto Saccon - http://rsaccon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060319/06cef789/attachment.html
weirdmonkey
2006-Mar-19 19:48 UTC
[Rails] Re: Multiple website section = multiple controllers ?
Roberto Saccon wrote:> yes you are right, multiple controllers = multiple pages = multiple urls > (as > you listed them)Does it have a bad effect on loading performance ? -- Posted via http://www.ruby-forum.com/.