On Thu, Jun 11, 2009 at 10:19 PM, Tyler Knappe<[email protected]> wrote:
> Right, I understand the MVC logic. However, even removing the logic > from the loop only renders a single time; the first element. If I swap > how the loop is performed to loop over the :update then I get an error > about attempting more than one render per call. The same is also true > of redirects. Is there a better way of doing this, or will RJS fix the > problem? Can it perform more than one render? That code *is* using RJS, that's what provides you the page object. It is inline RJS instead of RJS in its own file, but it is RJS. Render can happen only once, but several calls to the page object in the same render do not account for serveral renders. Your code uses a single ID, if you modify only one element, that's what you get. If the real code is different please paste it. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

