Displaying 20 results from an estimated 67 matches for "acts_as_versioned".
2006 Apr 13
2
acts_as_versioned gem
I''ve installed the acts_as_versioned gem, and it shows up as
installed when i do a "gem list"
After installing it, I set up my new model with the
"acts_as_versioned" line in its model file. I think went to run my
migration to create this table, and I got the following error:
== CreateDpslevels: migrating...
2006 Feb 14
10
acts_as_versioned and getting authors
Hey guys and gals,
I have the following object that has acts_as_versioned:
class Note < ActiveRecord::Base
acts_as_versioned
belongs_to :user
end
The schema for my notes table is as follows:
create_table :notes, :force => true do |t|
t.column :id, :integer
t.column :noteshare_id, :integer
t.column :user_id, :integer
t.colum...
2006 Jun 03
1
First time plugin user: Problem with "acts_as_versioned"
Hi,
I am having trouble with using the acts_as_versioned plugin. I installed
the plugin, and ran the migration. acts_as_versioned created the
versioned table OK, but when I try to use it I get an error. Here is
some console output:
>> m = Mymodel.find(:first)
NameError: undefined local variable or method `acts_as_versioned'' for
Mymod...
2006 Mar 20
3
help: acts_as_versioned setup error "undefined local variable or method ''base_class''"
Hi All,
Rails newbie here trying to set up acts_as_versioned according to Chapter 14
in the Rails Recipies book. I''ve taken the following steps (nearly
verbatim) as mentioned by the book:
- created the target model "Post"
- added the "acts_as_versioned" label to the model file
- generated a migration file
- added the table creat...
2006 Dec 07
0
rails_file_columng + acts_as_versioned
...dynamically generated by rails_file_column don''t get added to
the Version class:
NoMethodError (undefined method `image='' for
#<Opinion::Version:0x35c9254>):
.//vendor/rails/activerecord/lib/active_record/base.rb:1847:in
`method_missing''
.//vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb:331:in
`clone_versioned_model''
.//vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb:330:in
`clone_versioned_model''
.//vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb:249:in
`save_version_on_
--
Posted via http://www.ruby-forum.c...
2008 Dec 01
3
acts_as_versioned and rails 2.2.2
Hi people I have tried to install the acts_as_versioned gem from
github in rails 2.2.2 but it seems to conflict with some methods in
the activerecords dirty.rb-file. I can solve some of the problem by
changing code in the activerecord, but I don''t think that was the
intention.
--~--~---------~--~----~------------~-------~--~----~
You received...
2006 Feb 17
2
acts_as_versioned and acts_as_taggable on same model?
I am trying to use acts_as_versioned and acts_as_taggable (plugin) on
the exact same model. Has anyone successfuly done this? I think
what I need to do is make model_versions acts_as_taggable instead of
my main model. Anyone have any other suggestions or any suggestions
how to do this?
Your Friend,
John Kopanas
http://www...
2007 Jan 28
0
problems with acts_as_paranoid (noticed while using acts_as_versioned)
.../Adam/dev/sweetspot/app/trunk/config/../vendor/plugins/
acts_as_paranoid/init.rb:5:in `belongs_to_without_deleted''
/Users/Adam/dev/sweetspot/app/trunk/config/../vendor/plugins/
acts_as_paranoid/init.rb:5:in `belongs_to''
/Users/Adam/dev/sweetspot/app/trunk/config/../vendor/plugins/
acts_as_versioned/lib/acts_as_versioned.rb:224:in `acts_as_versioned''
/Users/Adam/dev/sweetspot/app/trunk/config/../app/models/note.rb:2
All note.rb contains is this:
class Note < ActiveRecord::Base
acts_as_versioned
end
looking at the code in acts_as_paranoid, I can''t figure out why it is...
2005 Dec 27
4
acts_as_versioned
Hi,
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...
2006 Apr 07
2
weird error with rake create_sessions_table
...adically. I thought I might try
switching to storing them in the db, but I get the following error when
I try to run the rake create_sessions_table command
D:\User\Code\ruby\prometheus>rake create_sessions_table
(in D:/User/Code/ruby/prometheus)
rake aborted!
undefined local variable or method `acts_as_versioned'' for Record:Class
I have the acts_as_versioned gem, and my whole app runs fine. If I
comment out the acts_as_versioned line in Record, another gem is not
recognized.
Any ideas.
Many thanks in advance.
CHEERS> SAM
2006 May 04
2
Is there a way to version the contents of a table as a set?
I am looking at using acts_as_versioned to manage revisions of data in
several tables in my application. However, the default behavior of
acts_as_versioned appears to apply to individual rows within a table. The
tables I want to version are complicated lookup tables and what I really
want is to version the entire contents of each table...
2005 Oct 18
0
Fwd: acts_as_versioned for many-to-many
> However, as I understand acts_as_versioned the models are not synchronized
> so when I look up the permissions of an old version of the employee I have
> to manually find the corresponding version of the permissions (ie the
> version of permissions that existed when that version of employee was
> updated), and when navigating to...
2008 Aug 26
0
acts_as_versioned rails 2.1 namespacing
Anyone knows how to use namespace with acts_as_versioned-0.5.1?
Model example:
class Namespace::MyModel < ActiveRecord::Base
require ''acts_as_versioned''
acts_as_versioned(:class_name => "Namespace::MyModel", :table_name =>
my_model_versions'')
...
The error looks like:
NameError in Namespace::MyMode...
2007 Nov 14
2
Globalize and acts_as_versioned
The subject says it all: Has anyone had any experience with using
globalize and acts_as_versioned (or equivalent) together. That is, I
would like the version control to take the locales into account, the
en-US translation could be on version 7 while the fr-FR version is 3.
Am thinking about extending these plugins but maybe someone has
already done this?
Tanks in advance.
Regards
Erik Lindbl...
2006 May 03
6
Versioning the contents of a table as a set
I am looking at using acts_as_versioned to manage revisions of data in
several tables in my application. However, the default behavior of
acts_as_versioned appears to apply to individual rows within a table. The
tables I want to version are complicated lookup tables and what I really
want is to version the entire contents of each table...
2006 Jun 13
9
act_as_versioned and join tables?
Greetings!
I''m attempting to use the act_as_versioned plugin to provide versioning
functionality for my rails app, but can''t think my way through this:
How can you use act_as_versioned to perform versioning on a HABTM join
table? It is easy to see how to do so for join models (:has_many
:through) but not so for the join table.
I want to use act_as_versioned to maintain
2006 May 06
0
Issues using GUID plugin: IDs and acts_as_versioned
...L queries wouldn''t put the ID with string
quotations. I get an error like:
Mysql::Error: Unknown column ''ayMi4o3iyr2OYfabBlKsEs'' in ''where clause'':
SELECT * FROM littles WHERE (big_id = ayMi4o3iyr2OYfabBlKsEs) ORDER BY
position DESC LIMIT 1
ISSUE #2) acts_as_versioned method "create_versioned_tables" assumes integer
for the foreign key id of the table to be versioned
Example: (using the same class as above) It will generate a "big_versions"
table with:
- id int (this is fine)
- big_id int (this should be a string since tables "bigs&quo...
2007 Dec 26
0
before_save with acts_as_versioned
Yes, I know about the :if/:if_changed clause on acts_as_versioned
... content_changed or author_changed ....
That''s not what I''m asking about.
What I''m wondering about is something like applying the spiffy new 2.0
sanitize as a ''before_save''
--
A little inaccuracy can save tons of explanation. -- Saki
--~--...
2009 Mar 26
0
acts_as_versioned and qa
...nding
aasm_state :pending
aasm_state :approved
aasm_state :rejected
aasm_event :approve do
transitions :from => :pending, :to => :approved, :guard => :valid?
end
aasm_event :reject do
transitions :from => :pending, :to => :rejected, :guard => :valid?
end
acts_as_versioned
self.non_versioned_columns << ''updated_at''
self.non_versioned_columns << ''created_at''
self.non_versioned_columns << ''qa''
self.non_versioned_columns << ''published_at''
def set_new_version
w...
2009 Apr 27
0
how to get acts_as_versioned able to delete only selected ve
Hello everyone
i''m working on uploading file by using attachment_fu and
acts_as_versioned
so the problem is i can''t delete only selected version
for example ;
i have file a.txt and this file have 5 version each version is viewable
( that mean you can view version 1 , version 2 , version 3
.............. )
a.txt ( version1 )
a.txt ( version2)
a.txt ( version3 )
a.txt ( ve...