Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

113
Views
Spree-blogging-spree no se requiere: opción de cubo

Estoy trabajando en una tienda de juerga y tengo Amazon s3 funcionando bien en la aplicación principal. Agregué la gema spree-blogging-spree simplemente siguiendo las instrucciones de Léame, pero ahora recibo un error de opción de cubo requerido cuando intento editar una publicación o agregar una imagen. Esto es solo para ediciones e imágenes relacionadas con el blog, todo lo demás sigue funcionando bien.

Sé que esto se refiere a s3, pero no estoy seguro de por qué aparece ahora. ¿Hay alguna migración que me perdí o algún tipo de archivo de configuración que deba agregar?

 Showing /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/spree-blogging-spree-81da8dd081a5/app/views/spree/admin/blog_entries/_form.html.erb where line #85 raised: missing required :bucket option Extracted source (around line #242): 240 241 242 243 244 245 @bucket = @options[:bucket] || s3_credentials[:bucket] @bucket = @bucket.call(self) if @bucket.respond_to?(:call) @bucket or raise ArgumentError, "missing required :bucket option" end def s3_interface Trace of template inclusion: /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/spree-blogging-spree-81da8dd081a5/app/views/spree/admin/blog_entries/edit.html.erb Rails.root: /home/ubuntu/workspace/mumbles_spree
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Descubrí que tenía que agregar mis credenciales s3 a blog_entry_image.rb:

app/modelos/juerga/blog_entry_image.rb

 class Spree::BlogEntryImage < Spree::Image has_attached_file :attachment, :styles => {:mini => '48x48#', :normal => '200x200>', :large => '600x600>'}, :default_style => :large, :url => "/assets/blog_entry_images/:id/:style/:basename.:extension", :path => ":rails_root/public/assets/blog_entry_images/:id/:style/:basename.:extension" , storage: :s3, s3_credentials: {access_key_id: 'xxx', secret_access_key: 'xxx'}, bucket: 'xxx' end
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!