search for: act_as_list

Displaying 7 results from an estimated 7 matches for "act_as_list".

Did you mean: acts_as_list
2007 Aug 15
3
ActsAsList specs
Hi, How are people specifying models which act_as_list? I''m thinking that it would be possible to check that acts_as_list instance methods have been added to a class using something like this: describe Page, "acts_as_list" do it "should act as a list" do Page.ancestors.should be_include(ActiveRecord::Acts::List::Ins...
2006 Jan 15
2
acts_as_tree & acts_as_list for a single model?
Hi, If I have a db table categories - id - name - parent_id - position is it alright to have the Category model act_as_tree and for each level act_as_list? class Category < ActiveRecord::Base acts_as_tree :order => :position acts_as_list :scope => :parent_id end Thanks, Peter
2006 Mar 22
10
Need for multiple acts_as_list
I have a model "Childmodel" that belongs_to two other models "Parent1" and "Parent2". "Parent1" "has_many :childmodels, :order => :positionp1" and "Parent2" "has_many :childmodels, :order => :positionp2". i.e. The child is independently positioned within each of its parents. This works fine and gets me the useful
2006 May 22
0
Ordering one model class by details contained in another
...I could think of. I tried a rather messy :conditions clausee on the data source for the paginaite, but as it had to use a MIN(event_date) type construct it fell apart unless I switched to a find_by_sql style call which felt inelegant. I''m currently playing with making the aggregation :act_as_list, while adding an ordinal to control the ordering of naturally sortable dates feels a little odd, at least I could right the :condition without needing to use an aggregate. Are there other approaches I should consider? Thanks Eric -- Posted via http://www.ruby-forum.com/.
2008 Jan 15
0
HABTM acting as list on Rails 2
Hi Fellow Railworkers Now that Rails 2 is the engine, is there an easier way to have a HABTM relation act_as_list? The solution outlined in the wiki is pretty ugly: http://wiki.rubyonrails.org/rails/pages/HowToUseActsAsListWithHasAndBelongsToMany Thanks for any hints, -sven -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you...
2006 Jun 11
4
[Question} how best to use attribute driven db with Rails
...ty (for security inheritance) * the security table reference which then gives the actual security rights. As such, you will note that there are a lot of relationships between the differing tables as well as inner-table relationships. The thing is that i am not sure if the Act As functionality (act_as_list) will be enough to pull the data as needed and to be as clean and simple as OR is suppose to be. Any advice.. or even simple smack in the right direction would be highly appreciated. -- Posted via http://www.ruby-forum.com/.
2009 Jan 04
3
undefined local variable or method `acts_as_list'
So I seem to be having an issue with trying to install acts_as_list in rails 2.2.2? I have downloaded the files from: http://github.com/rails/acts_as_list/tree/master I have put the files in the vendor/plugins folder the files are as follows: vendor/plugins/acts_as_list/init.rb vendor/plugins/acts_as_list/lib/active_record/acts/list.rb vendor/plugins/acts_as_list/test/list_test.rb