You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.
First off, great gem. I love it. I've been running into an issue though when setting the viewport in Shrimp's config. My code looks like this:
Shrimp.configure do |config|
config.viewport_width = 1080
config.margin = '0cm'
config.rendering_time = 3000
end
And then I get an error: undefined method 'viewport_width=' for #<Shrimp::Configuration:0x007fda0fb741e8> (NoMethodError)
I pointed to a cloned version of the shrimp gem and got it to work by moving this line to the last line in the hash literal (ie moving the viewport_width and viewport_height above the file opening in initialization). I do note that I'm not using a config.json file, though I have tried and I still get the same error.
First off, great gem. I love it. I've been running into an issue though when setting the viewport in Shrimp's config. My code looks like this:
And then I get an error:
undefined method 'viewport_width=' for #<Shrimp::Configuration:0x007fda0fb741e8> (NoMethodError)
I pointed to a cloned version of the shrimp gem and got it to work by moving this line to the last line in the hash literal (ie moving the
viewport_width
andviewport_height
above the file opening in initialization). I do note that I'm not using aconfig.json
file, though I have tried and I still get the same error.Ruby Environment Manager: rbenv
Ruby Version: 2.0.0-p353
Rails Version: 3.2.13
The text was updated successfully, but these errors were encountered: