search for: playlistitem

Displaying 2 results from an estimated 2 matches for "playlistitem".

Did you mean: playlist_items
2011 Nov 24
5
ActiveRecord::AssociationTypeMismatch
Hi to all, I have this error and I don''t understand why. I have three model, Image and Playlist and PlaylistItem. Everything works fine. The app should work also a XML REST service. When I made this call I obtain this XML because the playlist don''t contains images: GET http://0.0.0.0:3000/playlists/7.xml <playlist> <id>7</id> <name>metallo</name> <images>&lt...
2007 May 28
2
Rails, respond_to? over anonymous module (extend has_many).
...tributes( :duration => (proxy_owner.duration - duration) ) end end def order return [] if proxy_owner.new_record? proxy_owner.playlist_item_ids end def reorder (ids) return [] if proxy_owner.new_record? ids.each_with_index do |id, position| PlaylistItem.update(id, :position => position + 1) end proxy_owner.playlist_items(true) end end # validations goes here validates_presence_of :title validates_uniqueness_of :title # code after this point end == Now, running a simple spec like this: describe Playlist do fixtur...