Adam wrote:
> Hey everyone, got it to work! Here's what I'm using:
>
> is_indexed :fields => [{:field => 'name', :as => 'playlist_name'}],
> :concatenate => [{ :class_name => 'Song', :field => 'name',
> :association_sql => "LEFT JOIN playlistings ON
> ((playlist_id=playlists.id)) LEFT JOIN songs ON
> (songs.id=playlistings.song_id)", :as => 'song' }]
>
> Hopefully that'll help someone out sometime. :)
Yeah! You help me with this post
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---