sorry im an idiot
def after_save uploaded_file = photo.queued_for_write[:original] dimensions = Paperclip::Geometry.from_file(uploaded_file) height = dimensions.height width = dimensions.width end end is after save not before, in the before Paperclip::Geometry.from_file(uploaded_file) does not exist On Sun, Sep 19, 2010 at 1:52 PM, Abder-Rahman Ali <[email protected]>wrote: > radhames brito wrote: > > did you created the fields in the database? do that and it should work > > Yes, I have created the fields in the database as follows: > > > rails script generate migration AddWidthToDicom width:integer > > And, > > > rails script generate migration AddHeightToDicom height:integer > > But, still the same. > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

