Rails 2.3.2: Accessing Model Specific Data in Another Model
Posted
by Gimli
on Stack Overflow
See other posts from Stack Overflow
or by Gimli
Published on 2010-04-26T21:14:06Z
Indexed on
2010/04/28
15:13 UTC
Read the original article
Hit count: 280
I'm using Rails 2.3.2 and using Paperclip to upload photos. I'm also using a slightly customized subdomain_accounts.rb to set some account-specific variables. My question is this:
How can I set the bucket used in Paperclip to be dependent on the current account? Since this looks to be a model attribute set up early on, how can I override it later? Thanks.
© Stack Overflow or respective owner