Displaying 2 results from an estimated 2 matches for "stha".
Did you mean:
sha
2008 Apr 15
4
is there a way to outsource image uploads?
I''m trying to keep my rails app lean and mean and want to avoid (if
possible) dealing with image uploads, thumbnail generation, running
RMagick etc.
I was excited about Amazon letting you upload files directly from the
browser to your S3 bucket (http://doc.s3.amazonaws.com/proposals/
post.html) but I couldn''t figure out how to generate thumbnails - has
anyone figured this out?
2007 Jul 21
3
unable to get "has_many :after_add" to work - need help
Can someone tell me what I''m doing wrong? I''ve spent way too much
time on this
--------------------------------------------------------------------------------------
class Picture < ActiveRecord::Base
has_many :ratings, :after_add => :increment_rating, :after_remove
=> :decrement_rating
def increment_members(rating)
self.rating += rating.amount
save!