CDRH / orchid

Rails Engine for site integration with CDRH API
MIT License
3 stars 0 forks source link

public.yml file and thumbnail size #212

Closed karindalziel closed 3 years ago

karindalziel commented 3 years ago

I started a new orchid site from scratch:

gem 'orchid', git: 'https://github.com/CDRH/orchid', tag: 'v3.1.0'

and the public.yml file had this for thumbnail size:

thumbnail_size: !200,200

However, in orchid's code, that variable is in quotes:

https://github.com/CDRH/orchid/blob/master/lib/generators/templates/public.yml#L21

On my computer, the code won't run without the quotes, but on my old computer it didn't matter

jduss4 commented 3 years ago

I figured out what's going on. The Orchid template starts correctly with "!200,200" but then the setup generator asks the user what size they want, and sticks that in without any quotation marks.

karindalziel commented 3 years ago

ah! good to know. so either change generator instructions or the way it sticks it in the file