search for: artwork_id

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

2006 Jul 11
0
Creating an association in a join table
...action to do the actual adding to the database but that''s where I hit a wall. Question: how do I make an association in my habtm join table that joins an existing category and an existing artist. Here''s what I''ve got so far: def add_artwork ##Security Hole??? artwork_id = params[:id].split("_")[1] artwork = Artwork.find(artwork_id) category = Category.find(params[:category]) categories << artwork render :partial => "category" end I''m stuck on the categories<< bit, there doesn''t seem to be...
2006 Feb 22
9
acts_as_habtm_list plugin
I''d like to announce acts_as_habtm_list plugin for rails. acts_as_habtm_list is a Ruby on Rails plugin, that can manage ordered lists through a join-table. It is providing almost the same Api as acts_as_list. The position column has to be defined in the join table. You can find additional information at: http://www.inlet-media.de/acts_as_habtm_list/ Install it executing this command