rails: running a method on create only
- by bandhunt
I want to run a paperclip method on create only
has_attached_file :file
This method doesn't seem to accept the :on = :create that some other rails methods do.
I tried:
before_create
after_create
etc, but those didn't work.
I also did:
if :create
How can I test if the controller is using the create method from the model?
Thanks!