That's the problem. Acts as taggable on steroids defines its own Tag  
class, your tag class doesn't have all the methods that one has.

Fred

Sent from my iPhone

On 23 Nov 2008, at 13:01, Jochen Kaechelin <[EMAIL PROTECTED]> wrote:

>
>
> Am 23.11.2008 um 13:24 schrieb Frederick Cheung:
>
>>
>>
>>
>> On 23 Nov 2008, at 11:43, Jochen Kaechelin <[EMAIL PROTECTED]>  
>> wrote:
>>
>>>
>>>
>>> Am 23.11.2008 um 12:10 schrieb Frederick Cheung:
>>>
>>>>
>>>>
>>>>
>>>> On Nov 22, 11:39 am, Jochen Kaechelin <[EMAIL PROTECTED]> wrote:
>>>>> I always get the following problem:
>>>>>
>>>>> Loading development environment (Rails 2.2.2) >> p =
>>>>> Frontpage.find 1
>>>>>
>>>> Do you have your own class called Tag?
>>>
>>> class Frontpage < ActiveRecord::Base
>>> acts_as_taggable
>>> belongs_to :worker
>>> has_many   :worker_comments, :as => :worker_commentable, :dependent
>>> => :destroy
>>> has_attached_file :frontpageimage,
>>>                   :styles => { :original => "180x255", :thumb =>
>>> "90x127" }
>>> end
>>>
>>
>> Well done for reposting your original post but the question was
>> whether you have you own Tag class (in app/models)
>
> class Tag < ActiveRecord::Base
>
>   has_many :worker_comments, :as => :worker_commentable
>
>   has_many :taggings, :dependent => :destroy
>   belongs_to :worker
>
>   define_index do
>     indexes :name, :sortable => true, :unique => true
>     set_property :delta => true
>   end
>
>   named_scope :newest_tags,
>               :order => "created_at DESC",
>               :group => "name",
>               :limit => 50
>
>   named_scope :alphabetic_taglist,
>               :order => "name DESC"
>
> end
>
>
>
>
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to