(jQuery) Accordion and Rails (3.0.9): architectural doubt

Hi!
I’m trying to use jQuery’s Accordion (jQuery UI Demos | jQuery UI
accordion/) in the home page of an app.

One (maybe two…) doubt is bugging me, though…

Do I have to have only one view/controller, holding the actions for
all the accordion’s sections? What if (at least) one of those sections
have tabs, is it still one view/controller?

Thanks in advance,

Jos Bonnet

This isn’t strictly a Rails question, but all the content sections in
this
component are just elements of the same HTML document, so that suggests
one
controller action / view template.

Chris K. wrote in post #1008407:

This isn’t strictly a Rails question, but all the content sections in
this
component are just elements of the same HTML document, so that suggests
one
controller action / view template.

Hi, I have a dashboard in one app that uses accordions and tabs with
jquery. The single view holds quite a lot of data meaning a lot of db
calls (I’ll cache at some point). This app will not have any high load
so I’m not worried about it (but the view template is long :-P)

In the end most of the stuff I have in the dashboard are separate
resources so it could be separated easily. The thing is handy initially
but if you are planning to put a lot of stuff there I would advise to
think if you can do it in other way just for the sake of organization,
readability and control of the app requests. Also think of the
scalability requirements or how frequently the data there will change
(caching will be effective if it doesn’t change so much).

Cheers.