I'm trying to accomplish the same thing with no luck.  So did you just
code the javascript yourself instead of using the helpers?

I second that the documentation seems to be inaccurate...

On Sep 20, 4:56 pm, Olivier Sarrouy <[EMAIL PROTECTED]>
wrote:
> Finally, i made it work but by coding :
>
> My old code :
>
> link_to_function("Show me more", nil, :id => "more_link") do |page|
>     page[:details].visual_effect  :toggle_blind
>     page[:more_link].replace_html "Show me less"
>   end
>
> doesnt work.
>
> I think the 
> pagehttp://api.rubyonrails.com/classes/ActionView/Helpers/JavaScriptHelpe...
> should be modified because it gives a non working example !
>
> cheers
>
> --
> Olivier
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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