On Mar 8, 3:09 pm, Colin Law <[email protected]> wrote:
> I have a nice RESTful design with separate pages for viewing and modifying
> my models in the conventional RESTful way. I now wish to provide a web page
> with several panels where each panel is showing data for a different model
> type. Data entered in one panel will change the objects shown in another.
> I am not sure of the best way to impliment this. Should I have an
> independant controller (with no model of it's own) to manage this, which
> obtains data from the various models and renders it's view, using partials
> to display the panels? Is there a better way?
>
you can use the same controller to do this. just use partials for
different models. Are the models associated? if yes, then it may be a
bit complex. if not, then it would be quite easy.
as for observing the changes, you could use the observe_field method
of prototypehelper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---