I’m integrating acts_as_versioned (ar-versioned.rubyforge.org) in my
customized CMS rails application to set up revision control for pages.
Getting and viewing versions works allright, but when I try to revert
to a version in the following way, nothing happens to the actual data
in the object.
Link from page:
<%= link_to image_tag(‘revert’), :action => ‘do_revert’, :id => @page,
:version => version %>
in my controller:
page = Page.find(params[:id])
flash[:notice] = page.title
redirect_to :action => ‘edit’, :id => params[:id]
When I look at the data in the object, nothing seems to have changed.
Thanks in advance,