On Sep 22, 7:31 pm, "Conrad Taylor" <[EMAIL PROTECTED]> wrote:

> > 3.times do
> >  page.insert_html :bottom, 'messages', 'test'
> > end
> > page.call 'updateMessageWindow'
>
> Hi, you forgot the block local variable.  Thus, the above should have been
> developed
> as follows:
>
> 3.times do |page|
>  page.insert_html :bottom, 'messages', 'test'
> end
> page.call 'updateMessageWindow'
>
That's not true. You don't need the block variable (and in your
example it's doubly bad because you would be overwriting the magic
page variables with the integers 0 to 2.

What's the whole of the rjs file ?

Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to