Displaying 14 results from an estimated 14 matches for "acts_as_".
Did you mean:
acts_as
2006 Feb 23
5
Access to session from plugins
Hi!
I am writing an acts_as_ plugin and i need to access session data
from it. But i cant find any information if this is possible? And if
it is, how.
Cheers!
Mathias
2006 Aug 07
0
writing an acts_as_* plugin
does anyone know of any documentation other than the article on the wiki
about how to write an acts-as_* plugin? the code in the wiki article is good
enough to get me started but I''d like to understand the code rather than
just copy it.
thanks
alan
2009 Aug 19
10
acts_as_list / acts_as_tree / acts_as_nested_set - which one
I am creating forum application which needs usage of acts_as_list or
acts_as_tree or acts_as_nested_set.
I am unable to decide among these. please could some one recommend from
their experience?
--
Posted via http://www.ruby-forum.com/.
2007 Sep 10
2
Removing an AR class definition, for testing plugins
I''m writing an acts_as_* plugin and am trying to BDD it. Ideally my
specs would look like:
describe ActsAsCloneable, " basic cloning" do
load_example_classes
School.class_eval do
acts_as_cloneable
end
before(:each) do
@old_school = School.create! :name => "Baylake Pines", :city =&...
2006 Jun 08
2
how to add plugin to ActiveRecord
...xt_month_str) - 1
end
end
However, this is Ruby on Rails, and I''m trying to break all my old
programming habits like making ugly code, and this looks ugly. Is there
a way to make this into some kind of plugin so that all I have to do is
say:
class Account < ActiveRecord::Base
acts_as_expiration_date :exp_date
end
and it will automatically do what I want behind the scenes?
Thanks!
Mike
--
Posted via http://www.ruby-forum.com/.
2006 Jun 01
2
Migrating Data from Many Databases to One
I had some concerns about breaking Rails table relationships (:has_many,
:has_and_belongs_to_many, :belongs_to, :acts_as_*, etc) when moving multiple
databases (using the same application) into one.
I seem to be stuck when trying to wrap my head around a good database design
for what I would like to do or if I am just completely not thinking
straight. I guess this isn''t related specifically to Rails but to o...
2005 Nov 02
4
acts_as_metadata?
...ML
serialization of ''123-456-7890''>);
Some areas for discussion:
- Is there an easier way to do this?
- Should I use one set of tables (as above) or do away with the
ar_class and have a person_property and person_property_value table?
- Would this best be implemented as an acts_as_, a plugin, an
ActiveRecord::Base extension, or what? Extending AR is a learning
experience for me.
Thanks!
--
Brad Ediger
866-EDIGERS
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mail...
2005 Dec 11
62
PROPOSAL: The list needs to fork (desperately).
...sers who are already proficient, and want to discuss
particular topics. Example topics include application design advice,
optimization, security, plug ins, and best practices.
* Rails-Hackers. For people writing extensions and plug ins to rails.
Things like localization, selenium integration, acts_as_*, and the like.
Comments?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 26
8
Search multiple models
Hello,
Lets say you have a few models like Post, Article, Wiki, Comment, And
you want to use ferret to search all of them at once. How would I set up
the latest acts_as_ferret to accomplish this? And what would be fastest
for searches? 1 index for all models, or have an index per model?
Thank you
--
Posted via http://www.ruby-forum.com/.
2006 Jul 18
0
act_as_tree with ordered items
...ogical order I would have to use a table
column just to store this order. My experience with position indices of
this kind is that it can lead to inconsistencies in the database so I am
reluctant to use such a solution.
So my question is this: Is there a way (preferrably implemented similar
to acts_as_*) to specify data structure with links within a certain
level of the tree, maybe using equivalents of previousSibling and
nextSibling as references to other items in the same table, as well as a
parent reference?
Grateful for help, regards
Erik Lindblad
--
Posted via http://www.ruby-forum.co...
2006 Jun 10
0
Testing association definitions...
Are there best practices for testing that the model class declares
the appropriate association linkages? Similarly are there good ways
to test that the model has declared desired acts_as_[list | tree]?
My first thought was to simply test if the model respond_to? either a
characteristic method of the association or even a more complete list
of methods. This would seem to be in-line with duck-typing, but it
also feels a little cumbersome. So how do you test-drive your
asso...
2006 Feb 07
4
Ferret on Rails -- Webrick won''t start?
...d using
http://ferret.davebalmain.com/trac/wiki/FerretOnRails
but Webrick won''t start after implementing the plugin?
I tried both versions but to no avail?
All I get is Booting up ... and then it dies?
No info in log/development.log?
Does anyone has a working copy of acts_as_ferret or has any ideas on what''s wrong? I am placing the plugins in vendor/plugins/acts_as_ferret directory.
Thanks
Frank
---------------------------------
Brings words and photos together (easily) with
PhotoMail - it''s free and works with Yahoo! Mail.
---...
2006 Jan 27
4
acts_as_whatever
Hi there,
I love the acts_as_* family that rails uses. I''ve also found I can
create something similar by dropping the following code into my
activerecord classes:
class MyClass < ActiveRecord::Base
class << self
alias_method :count_with_unapproved, :count
end
def self.find(*args)
options = extract_options_f...
2006 May 23
11
putting the schema in the model files
THE SCHEMA IN THE MODEL
a small write up on ''putting the schema in the model''
This is a write up on an issue best covered in a mailing list thread
of Januari 2006 (see the links in the text), I repost it because I
think it deserves a place on the agenda.
== Why? ==
I was switching back and forward between the model files and the
schema.rb -- off course I have