It is a standard "has_many :through" relationship. Here is the issue though, I am using link_to_remote to add the bookmark for that wonderful ajax feeling.
I am using TechnoWeenies Restful_Authentication plugin (hence the current_user object), but I can't seem to get this to work. This *should* be POSTing via AJAX to UserBookmarks#create but I can't even get that far.
I thought that the plural version of the helper did NOT require an id
and the singular version did. The plural version of the restful
routing helper methods are for linking to collections of objects. The
singular version is for linking to a specific object and thus requires
the id for it.
More information on routes and resources is available here:
Note especially the use of the singular and plural routing helpers and
their respective required params:
# GET messages_url
# GET message_url(:id => 1)