Closed microcosm closed 8 years ago
Hello!
Are you updating an old refinery version? Do you have others decorators on Pages?
Hi Brice,
Yes, we recently upgraded from refinerycms 3.0.0 to 3.0.3. We were actually locked to this commit until we recently upgraded.
We haven't created any decorators.
Did you have recently updated refinerycms-page-images
?
We went from 3.0.0.dev to 3.0.0.
from revision: 3d8af17318a2bf3180bb1eee4f1df8bea48f0280 to revision: 4f40c58c492a6eed9a876f10c2c1e06402d294f9
Ok could you test the latest commit: https://github.com/refinery/refinerycms-page-images/commit/ed35b79283ccb63090600902a841e6b5355efed6 ?
I updated to that commit, I'm still seeing the same error :/
i can't reproduce this error, you should try to disable all extensions and see when it works or use a debugger like byebug
or pry-byebug
to find where the problem occurs.
I had to add the following to our config/initializers/refinery/page_images.rb:
config.enable_for = [ { :model => 'Refinery::Page', :tab => 'Refinery::Pages::Tab' }, { model: "Refinery::Dispatches::Dispatch", tab: "Refinery::Dispatches::Tab" } ]
This fixed the problem.
👍
That's because enable_for
set an array of hash. It did not push an hash to an array.
So you have to keep all configs like you did in:
config.enable_for = [
{ :model => 'Refinery::Page', :tab => 'Refinery::Pages::Tab' },
{ model: "Refinery::Dispatches::Dispatch", tab: "Refinery::Dispatches::Tab" }
]
Hi,
Whenever I save a page, I get this error message:
Here is the relevant info from my Gemfile.lock so you can see version numbers:
Here is a full stack trace