On 1 Aug., 15:36, David Sousa <[email protected]>
wrote:
> Hi,
>
> I gave an ID to the UL element and solved my problem.
> But I'm not happy with that... still looking for a more dynamic way to
> do it.
>
> Some people could do it using:>page.insert_html :bottom, 
> page.literal("$$('p.welcome b').first()"), "Some item"
>
> and it is not working for me sadly.
>
> thanks,
>
> David Sousa
> --
> Posted viahttp://www.ruby-forum.com/.

Easy to solve your unhappyness because other people use the "$$"
function while you just use the "$" function from prototype. $$
('#comments_list ul') is waht you need to add, obviously.

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