Hi ,

I have a table called streams which contain the columns:
id name resolution framerate bitrate

i have created a web application which is working fine.
Here are my doubts:

1)i want to give a tag to my table to find the data from the table.i
tried like below but i am not able to give throwing errors on console:

befor giving the tag i have created an instance and then i applied
tagging.can give me idea to clear this?

>> s = Stream.find(1)
=> #<Stream id: 1, name: "dust.mpeg2", resolution: "1920x1080",
codecname: "mpeg2", framerate: "30fps", created_at: "2008-12-04
16:23:23", updated_at: "2008-12-04 16:23:23">


>> s.tag_with('d1 cif 720p')

NoMethodError: undefined method `parse' for Tag(id: integer, name:
string):Class
        from E:/srikanth/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/
gems/activerecord-2.0.2/lib/active_record/base.rb:1532:in
`method_missing'
        from E:/srikanth/InstantRails-2.0-win/rails_apps/stdb/vendor/
plugins/acts_as_taggable_on_steroids/lib/acts_as_taggable.rb:223:in
`tag_with'
        from E:/srikanth/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/
gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/
database_statements.rb:66:in `transaction'
        from E:/srikanth/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/
gems/activerecord-2.0.2/lib/active_record/transactions.rb:80:in
`transaction'
        from E:/srikanth/InstantRails-2.0-win/rails_apps/stdb/vendor/
plugins/acts_as_taggable_on_steroids/lib/acts_as_taggable.rb:215:in
`tag_with'
        from (irb):2
>>












--~--~---------~--~----~------------~-------~--~----~
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