[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Complex views

Daniel Khan

10/19/2007 10:18:00 AM

Hello,

I am coming from seven years of php and I want to try rails now :)

I started some approaches before and my biggest problem is that I
don't know the best practice for creating complex views with rails.

The site contains a front page with several tools aggregated. Latest
blog entries, a login tool, some news articles.
I want to delegate the specific tools to modules and I don't want to
have all the logic inside the view controller.

Can anyone tell me how this can be done or how others solve this.

Thanks a lot for your help

--
Daniel Khan

2 Answers

Daniel Khan

10/19/2007 11:27:00 AM

0

I was wrong here - I think I'll better put this into a rails group.

Phlip

10/19/2007 1:02:00 PM

0

> I was wrong here - I think I'll better put this into a rails group.

Please. I need to complain Rails falls down on this specific problem. A
controller can only control an entire page, when the "true meaning" of Model
View Controller is a controller can control a region of a page.

The cheap answer is to hide your excess methods into "helpers", and pretend
that just hiding the methods improves the design!

--
Phlip
http://www.oreilly.com/catalog/9780...
"Test Driven Ajax (on Rails)"
assert_xpath, assert_javascript, & assert_ajax