that executes an action to toggle a page element (edit_campaign):
def toggle_edit_campaign
render :update do |page|
page.toggle :edit_campaign
end
end
Toggling works, but the edit_campaign element is visible by default
when the page loads. I would like it to be hidden by default, and
then toggle show, hide, show, hide, etc. when the above link_to_remote
is clicked. How does one do this (make the element hidden by default,
and toggle to visible on the first click)?