Displaying 6 results from an estimated 6 matches for "howtowriteanactsasfoxplugin".
2006 Jul 06
3
How To write an acts_as* plugin
Hi,
I need to understand how to write an acts_as_XXX (similar to acts_as_tree)
plugin
Any good resource to get me started?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060706/a974ff06/attachment.html
2006 Jun 05
0
Plugin Namespace Oddities?
Hi all,
I''m trying to throw together an acts_as_copyable, to add the ability to:
@new_ar_object = @ar_object.copy
I''m using the Fox example for the basic loading into AR with a module:
http://wiki.rubyonrails.org/rails/pages/HowToWriteAnActsAsFoxPlugin
so in my instance methods:
module InstanceMethods
def copy( options = {} )
copyable_attributes = self.attributes
copyable_attributes.delete ''id''
options.each do |key, value|
next if key.class == String
options.d...
2005 Dec 29
3
Why do plugins use class_eval?
I''m writing my own plugin and all the plugins I''ve seen use class_eval in the
method that is called in the including module. For example:
http://wiki.rubyonrails.com/rails/pages/HowToWriteAnActsAsFoxPlugin
module Foo
module Acts #:nodoc:
module Fox #:nodoc:
def self.included(base)
base.extend(ClassMethods)
end
# declare the class level helper methods which
# will load the relevant instance methods
# defined below when invoked
module ClassM...
2005 Nov 03
12
Installation of plugins/gems/mix-ins confusion
I''m running 0.14.2 and am a little confused as to the best way to
install mix-ins. I''m specifically using "acts_as_paranoid" as an
example (as it is one of the simpler implementations). It is a gem and
can be "installed" as a gem, but then what''s the best way to integrate
it into my app (require_gem?). I''ve seen recommendations to require it
2005 Dec 02
43
ANN: acts_as_ferret
...gmane.org/gmane.comp.lang.ruby.rails/26859
# http://ferret.davebalmain.com/trac
# http://aslakhellesoy.com/articles/2005/11/18/using-ferret-with-activerecord
# http://rubyforge.org/pipermail/ferret-talk/2005-November/000014.html
Howtos on creating plugins:
# http://wiki.rubyonrails.com/rails/pages/HowToWriteAnActsAsFoxPlugin
# http://www.jamis.jamisbuck.org/articles/2005/10/11/plugging-into-rails
# http://lesscode.org/2005/10/27/rails-simplest-plugin-manager/
# http://wiki.rubyonrails.com/rails/pages/HowTosPlugins
The result is the acts_as_ferret Mixin for ActivcRecord.
Use it as follows:
In any model.rb add acts_as...
2005 Dec 02
43
ANN: acts_as_ferret
...gmane.org/gmane.comp.lang.ruby.rails/26859
# http://ferret.davebalmain.com/trac
# http://aslakhellesoy.com/articles/2005/11/18/using-ferret-with-activerecord
# http://rubyforge.org/pipermail/ferret-talk/2005-November/000014.html
Howtos on creating plugins:
# http://wiki.rubyonrails.com/rails/pages/HowToWriteAnActsAsFoxPlugin
# http://www.jamis.jamisbuck.org/articles/2005/10/11/plugging-into-rails
# http://lesscode.org/2005/10/27/rails-simplest-plugin-manager/
# http://wiki.rubyonrails.com/rails/pages/HowTosPlugins
The result is the acts_as_ferret Mixin for ActivcRecord.
Use it as follows:
In any model.rb add acts_as...