similar to: Fwd: acts_as_versioned for many-to-many

Displaying 20 results from an estimated 9000 matches similar to: "Fwd: acts_as_versioned for many-to-many"

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.column :title, :string
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.kopanas.com
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_tag('revert'), :action => 'do_revert',
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 Mymodel:Class Did I miss a step? Ingo --
2007 Jan 28
0
problems with acts_as_paranoid (noticed while using acts_as_versioned)
hello, I''m using the trunk versions of both plugins. I''m running into this error when I run a migration to try and create the versioned table for the model ''Note'' stack level too deep /Users/Adam/dev/sweetspot/app/trunk/config/../vendor/plugins/ acts_as_paranoid/init.rb:5:in `belongs_to_without_deleted''
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 this message because you are subscribed to
2006 May 06
0
Issues using GUID plugin: IDs and acts_as_versioned
Hi, First off, I think the GUID plugin is very slick ( http://wiki.rubyonrails.org/rails/pages/Uses+Guid+Plugin). However, I''m running into a few issues: ISSUE #1) Rails'' handling of IDs as strings instead of integers. In particular, it didn''t seem to work when I had a model doing "acts_as_list" with a scope: Example: Class Big < ActiveRecord::Base
2006 May 17
0
acts_as_versioned with lock_version bug?
Hello. The acts_as_versioned plugin works fine ... till the adjunction of optimistic locking via the lock_version table column. Here is the problem description: Without optimistic locking things are fine: # ++++ The table creation migration ++++ % cat db/migrate/001_create_tables.rb class CreateTables < ActiveRecord::Migration def self.up create_table :softwares,
2006 Jul 10
1
Capistrano on Windows - Send Binary File
So, I''m using TechnoWeenie''s recipe ( http://rails.techno-weenie.net/tip/2006/4/3/integrating_file_column_and_capistrano ) for using Capistrano to deploy to a remote machine when the SVN repository isn''t accessible over the Internet. I keep running into a problem, though, with put(File.read("code_update.tar.gz"), "code_update.tar.gz") When Cap
2006 Dec 07
0
rails_file_columng + acts_as_versioned
Anybody using both of these plugins simultaneously? It appears that the methods 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''
2006 Mar 06
4
Change to set_fixture_class
So, I sat down to use set_fixture_class, and it bombed on the first thing I tried: set_fixture_class :content_drafts => "Article::Draft" I made a quick patch, and I''d appreciate a quick run through your tests to make sure it doesn''t disturb anything: http://dev.rubyonrails.org/ticket/4095 As I was typing this, I realized that the string gives us no benefits. I
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 ================================================ --
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::MyModel wrong constant name
2006 Mar 24
2
Change to has_many :through associations
Hi everyone. I''ve made a default change to has_many :through associations that I felt was important to make before they''re released. This is after some tickets and confusion I''ve seen regarding has_many :through. class Connection < ActiveRecord::Base belongs_to :user belongs_to :channel end class Channel < ActiveRecord::Base has_many :connections
2007 May 08
2
Install plugin acts_as_auth.. no access to techno-weenie.net
please help me get this plugin installed... I have no access to techo-weenie.net due to a firewall blocking the weenie crap in its domain name. more specifically, i''m trying to do this: script/plugin install http://svn.techno-weenie.net/projects/plugins and it bombs. On a machine w/ access to this repository, I did an svn checkout and tar''d up the contents... then
2006 May 12
2
Has many through join table issues
I''m trying to wrap my caffeine soaked brain around has_many :through following along at: http://rails.techno-weenie.net/tip/2005/12/23/teaching_your_blog_model_new_tricks_with_has_many_through I think my models are a little more complex than what fits this narrative. I have a directory of members, each member can belong to multiple categories. The category table references itself
2007 Apr 02
1
SVN Propget error linking to techno-weenie.net
After installing the plugin like this: ./script/plugin install -x http://svn.techno-weenie.net/projects/plugins/exception_logger/ I get this error when accessing the source repositories: svn: PROPFIND request failed on ''/projects/plugins/exception_logger/ init.rb'' svn: PROPFIND of ''/projects/plugins/exception_logger/init.rb'': Could not resolve hostname
2006 Oct 15
1
mongrel_send_file gem plugin
served piping hot fresh from my svn repo: http://svn.techno-weenie.net/projects/mongrel/mongrel_send_file/README == mongrel_send_file GemPlugin This is a simple plugin to handle the sending of secure files from a rails app. Here''s the typical process: - Rails app authorizes user to download file - Rails app sets file info in the session, redirects to custom URL like
2006 Feb 08
8
Liquid with database?
Hello, Just wondering if someone here as successfully ported Liquid to use with a database. I would like to try it out but not sure how Liquid integrates with current templates. Thanks Frank --------------------------------- Yahoo! Mail - Helps protect you from nasty viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2005 Jul 26
6
implement audit trail table
has anyone has any idea how to implement audit trail table for all update / deletion done on records? I''m thinking to have corresponding audit trail table to each table, so everthing before an update or deletion is done, a new record will be insert into the corresponding audit trail table. Is there a way to overwrite the save, destroy, method at the application level? so that I do not