Skip to main content

#cache required in application controller

Comments

2 comments

  • Aleksandar Kostadinov

    Hi Chloe,

    Could you try adding `config.cache_storage = :file` to the Carrierwave initializer, e.g.

    CarrierWave.configure do |config|
     config.cache_storage = :file
    end

    Please let me know how it goes.

    0
  • Chloe Ruiz-Funes

    Hey Aleksander--thanks so much! 

    I figured it out--needed to change "short_name" to an attribute in my model

      def public_id
        return model.short_name
      end 
     
    changed to:
     
    def public_id
        return model.id
      end 
     
    Also the public_id method is not necessary, so I could have removed it.
     
    Thanks for your help!
     
    0

Post is closed for comments.