hi all,

I'm trying to toggle the caption of a link between show archive and
hide archive? Everytime a user clicks the link the caption should
change.

I tried but this simply doesn't work.

Someone can help me out?

Thanks
Stijn

  <div id="show_archive">
    <%= link_to_function "Show archive" do |page|
        if page['show_archive'].value == "Show archive"
          page['show_archive'].replace_html("Hide archive")
        else
          page['show_archive'].replace_html("Show archive")
        end
    end %>
  </div>
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
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