similar to: Major update to acts_as_versioned_association

Displaying 20 results from an estimated 7000 matches similar to: "Major update to acts_as_versioned_association"

2006 Jun 08
0
acts_as_versioned_association plugin
Building on the great ''acts_as_versioned'' plugin by technoweenie, I''ve written a small plugin which also stores versions of associations. It''s early and experimental at the moment, but does work. For example: class Article < ActiveRecord::Base has_many :images has_and_belongs_to_many :categories acts_as_versioned acts_as_versioned_association
2007 Aug 27
0
how to use acts_as_versioned_association
Hello, I have been looking for documentation for acts_as_versioned_association and can''t really find any. I have acts_as_versioned_working properly but want to change to acts_as_versioned_association. Do I need to create a 3rd table to use as a reference or is it all done behind the scenes and all I need to do is add the plug-in and: acts_as_versioned acts_as_versioned_association :
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 Apr 06
1
Primary keys and migrations
I have a join table I''m creating with a migration as follows: create_table :read_global_messages, :id=>false do |t| t.column :user_id, :integer t.column :message_id, :integer end So far so good, however I want the primary key to be user_id and message_id. How do I do this? I tried the following, but that doesn''t work: add_index
2006 Jun 04
0
[SUMMARY] Rails Core Weekly May 29 - June 4
Rails Core Weekly May 29 - June 4 Dear List, Another week has passed, here''s RCW, the McCartney Edition: This weeks kicks of with Josh Susser fixing has_and_belongs_to_many #create method to properly populate joins with new records :http://www.ruby-forum.com/topic/67478#new. Check out his test: def test_create_by_new_record devel = Developer.new(:name => "Marcel",
2006 Jul 22
1
browser_detect plugin
I just knocked up a quick plugin based on Rafael Lima?s Javascript which was inspired by the Browser selectors in CSS post by 37signals. It?s pretty naive at the moment, but could be nice to build on in the future. It adds two helper methods available in your views - browser_is? and browser_name <%= browser_name %> => mozilla (or whatever) <% if browser_is? :mozilla %> do
2019 Nov 26
2
4.9.x -> 4.10.x : any major things to consider?
On 26/11/2019 19:44, Stefan G. Weichinger via samba wrote: > Am 26.11.19 um 20:39 schrieb Rowland penny via samba: > >>> I assume I have to start over: demote that DC2 etc >>> >>> Should have left office when I could an hour ago. >>> >> Definitely sounds like you should, you are probably tired and it is >> easy? to make mistakes when you are
2006 Aug 25
1
Time based fragment caching plugin
I''ve written a plugin to allow for time based fragment caching. It lets you do things like: <% cache ''fragment_name'', 10.minutes.from_now do %> <p>something intensive which will be cached for 10 minutes</p> <% end %> Also, there''s a convenience method so that in your controllers you can do: when_fragment_expired
2006 May 19
1
LoadError - no such file to load -- pathname (Dreamhost)
I''ve started getting the following error on Dreamhost when trying to run any scripts or dispatch.* [barry]$ ruby -d script/server Exception `LoadError'' at ./script/../config/boot.rb:6 - no such file to load -- pathname ./script/../config/boot.rb:6:in `require'': no such file to load -- pathname (LoadError) from ./script/../config/boot.rb:6 from
2005 Aug 19
1
In place editor, load in text
I''ve been testing the in-place-editor on a few things and it works well. One use-case I''ve just come across though is the need to load in the text from somewhere other than the source of the page. For example, I have a block of text which is marked up in texttile/markdown/whatever. Editing that block should bring up the unformatted markup, not the HTML it''s turned
2006 Jul 26
1
AuditTrail in Rails
Hello there, I need to build an audit trail system for an application. So far I have been looking at acts_as_versioned and acts_as_versioned_association plugins. I am having troubles getting the second one to work. Any how, do you have any suggestions about how to build a robust audit trail? Thanks, Roland -- Posted via http://www.ruby-forum.com/.
2006 Feb 20
3
file_column and login_engine incompatibilities
Hi, has anyone come across any incompatibilities between file_column and login_engine? I''ve been having strange issues where a User model with file_column in it is failing to save the images properly. Everything uploads to the tmp dir fine, but then it never gets copied to the proper permanent location. No errors - everything happens fine except for that final part. I have
2008 Jan 30
0
Re: Paypal and subscriptions
Richard, My name is Ron Coleman, a business development manager at EC Suite. We specialize in on-line transaction processing and provide an an inclusive e-commerce toolset designed to reduce the cost of processing and marketing while you focus the managing of your business. Our subscription billing service allows for flexible pricing options and multiple payment types. You can create, cancel, and
2019 Nov 26
0
4.9.x -> 4.10.x : any major things to consider?
On 26/11/2019 20:23, Stefan G. Weichinger via samba wrote: > Am 26.11.19 um 20:53 schrieb Stefan G. Weichinger via samba: >> Am 26.11.19 um 20:50 schrieb Rowland penny via samba: >>> On 26/11/2019 19:44, Stefan G. Weichinger via samba wrote: >>>> Am 26.11.19 um 20:39 schrieb Rowland penny via samba: >>>> >>>>>> I assume I have to start
2019 Nov 26
2
4.9.x -> 4.10.x : any major things to consider?
Am 26.11.19 um 20:53 schrieb Stefan G. Weichinger via samba: > Am 26.11.19 um 20:50 schrieb Rowland penny via samba: >> On 26/11/2019 19:44, Stefan G. Weichinger via samba wrote: >>> Am 26.11.19 um 20:39 schrieb Rowland penny via samba: >>> >>>>> I assume I have to start over: demote that DC2 etc >>>>> >>>>> Should have left
2006 Jan 20
1
stack level too deep from has_many / belongs_to relationship
I have the following 3 models (2 models joined by an intermediate): 1. class Exercise < ActiveRecord::Base 2. has_many :routines, :class_name=>''RoutineExercise'' 3. end 1. class Routine < ActiveRecord::Base 2. has_many :exercises, 3. :class_name=>''RoutineExercise'', 4. :order=>''position'' 5. end 1. class
2006 Apr 05
4
How to do IN(?) query?
I''m trying to do an IN query, where I have an array of user objects imaginatively named ''users'': :conditions=>["user_id IN (?)", users.collect{|u| u.id }.join('','')] this ends up with: ... IN(''1,2,3'') ... Obviously I want this to be: ... IN(1,2,3) ... or even ... IN(''1'', ''2'',
2005 Aug 15
5
Customized Autocompletion
In the customized autocomplete demo, how does it know what content to use as the value of the autocomplete? The returned UL has the name, email address and an image. Yet only the name is used. How does it do this? I''ve been trying to get something similar going all morning with little success. Also, what does :skip_style=>true do? I couldn''t seem to find a mention of it
2013 Jun 01
1
Please Help! Dynamic DNS just will not work: " failed gss_inquire_cred: GSSAPI error: Major = Unspecified GSS failure"
I just can't seem to get dynamic DNS updates working on CentOS 6.4 with samba 4.0 .tar.gz from samba.org using BIND9_DLZ. If I run bind 9.8.2.rc1 in debug mode and go to a domain joined windows client and run 'ipconfig /registerdns' this is what I get in my console: 31-May-2013 23:51:06.520 client 10.0.0.106#54352: new TCP connection 31-May-2013 23:51:06.520 client 10.0.0.106#54352:
2006 Feb 10
2
Paypal and subscriptions
Does anyone have any experience with subscriptions and PayPal? I''m currently weighing up the options of what payment system to use for an upcoming project which is subscription based and am not sure if PayPal is capable of doing what I want and if I need to setup a merchant account instead. Basically it''s the same kind of payment structure as BaseCamp. 3 or 4 accounts which