Displaying 3 results from an estimated 3 matches for "revert_to".
2005 Dec 27
4
acts_as_versioned
...rsion 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:
def do_revert
page = Page.find(params[:id])
page.revert_to!(params[:version])
flash[:notice] = page.title
redirect_to :action => 'edit', :id => params[:id]
end
When I look at the data in the object, nothing seems to have changed.
Thanks in advance,
--
Michiel Sikkes
michiel.sikkes@gmail.com
_____________________________________...
2006 Jul 11
2
acts_as_versionable and prospective versions
Anyone out there really familiar with acts_as_versionable ?
I''ve recently got it working, and I think it''s working great.
But what I want to do is a little different than what it does by
default.
Currently, each time I save the activerecord, the plugin increments
the version number in the main table, and writes a copy to the table
that stores old versions.
What
2007 Feb 26
24
Ruby/rails port of Cocoon/hibernate
Hi,
I''m currently running an apache/jboss cocoon/flow/hibernate/ajax
paypal (directpayment) project and am looking into the possibility of
porting it across to ruby/rails. For that reason I would like to know
the following:
1. Can I call my java classes or would I be looking at a complete
rewrite in ruby?
2. How effective is ruby in terms of seperation of concerns regarding
design from