Displaying 8 results from an estimated 8 matches for "act_a".
Did you mean:
acta
2006 Mar 15
4
ActiveRecord::RecordNotFound in search results act_as Ferret
Hello,
I''ve installed the Ferret gem and also got the act_as_ferret code from
the wiki.
I''ve set up my model "Branch" to act as ferret using the code below.
acts_as_ferret :options => {:fields => [''name'', ''body_text'', ''address'']}
I''ve also set up a ferret_controller w...
2006 Apr 10
3
Simple act_as template
Hello !
I posted a simple template to show how to add ''act_as_whatever'' to
ActiveRecord.
I think this might be useful to others as there are some trickery ruby
things in this
file.
Here is the template : http://textsnippets.com/posts/show/384
Gaspard Bucher
--
Posted via http://www.ruby-forum.com/.
2006 Feb 20
13
Agile Legacy Interop
I just wanted to announce my latest plugin: LegacyInterop
The 5 second video, minus the video, looks like this:
$ ./script/plugin install
svn://lirp.rubyforge.org/var/svn/lirp/trunk/legacy_interop
$ echo LegacyInterop.act_as_dotnet >> config/environment.rb
Done! Agile! Pragmatic!
The plugin includes support for a large number of legacy systems, all
using the "act_as" pattern.
act_as_dotnet
act_as_java
act_as_php
act_as_sh
act_as_perl
So for all those complaining about their bosses imposing a platf...
2009 Nov 25
1
CMS act_as_tree and modular architecture
I am developing a CMS using act_as_tree for the pages and act_as _list
to order them (as shown on Railscasts). Each page can load a custom
ERB template, for instance I have one to display a standard article
and one to display a group of articles (so acting as a category of
underling articles).
If I want to develop a forum, let'...
2012 Aug 03
1
Mock_model not recognizing act_as_mappable
...Location.al(:bounds=>bounds)l
@locations.sort_by_distance_from([bounds.center.lat,bounds.center.lng])
Rspec:
@location = mock_model(Location)
Location.stub(:all).and_return([@location])
@location.stub!(:sort_by_distance_from).and_return([@location])
Within real model: Location
act_as_mappable
....
the :sort_by_distance_from is a method from within act_as_mappable.
Upon investigation, when I compare the available methods for both the
Location model and the mock_model, I found act_as_mappable is missing from
the mock_model.
Which accounts for why it was failing in the
s...
2006 Feb 07
1
acts_as_taggable plugin: more delimiters?
I''m going through the Recipes book and got to the Tagging chapter,
wanted to give it a shot. According to the text, tag_with takes a
space-delimited list of tags. Is there a way to use different
delimeters, such as commas or single quotes? Some tags can
potentially have more than one word, such as ''ice cream''. I''d like to
be able to use those without doing
2010 Dec 08
1
Help on install act_as_ferret on windows XP
Hi There!
Im trying to install act_as ferret on win xp, with this
environment:
winXP
ruby : 1.8.7
rails: 2.3.8
gem list:
abstract (1.0.0)
actionmailer (3.0.1, 2.3.8, 1.3.3)
actionpack (3.0.1, 2.3.8, 2.3.2, 1.13.6, 1.13.3)
actionwebservice (1.2.6, 1.2.3)
activemodel (3.0.1)
activerecord (3.0.1, 2.3.8, 2.3.2, 1.15.6, 1.15.3)
activeres...
2005 Sep 06
9
acts_as_taggable v4 - Tag Counting Anyone?
ThereĀ“s already a new version of the acts_as_taggable mixin available
and look what it is capable of now:
# Gets the top 10 tags for all photos
Photo.tags_count :limit => 10 # => { ''beer'' => 68, ''wine'' => 37, ''vodka''
=> ''22'', ... }
# Gets the tags count that are greater than 30
Photo.tags_count :count =>