On Aug 2, 2012, at 7:03 PM, Quiliro Ordóñez wrote: > How about this?: > > class Work < ActiveRecord::Base > > hobo_model # Don't put anything above this > > fields do > name :string > url :string > timestamps > end > > belongs_to :user > has_many :works > belongs_to :work
Looks reasonable - this is pretty much what acts_as_tree will build: https://github.com/amerine/acts_as_tree/blob/master/lib/acts_as_tree.rb Mostly what you get with the plugin are a few helper methods / scopes and a hint to future devs that this is really a tree and not some other weird thing. :) --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
