faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
<FromGitter> <robacarp> @vsaroha_gitlab what error are you getting?
<FromGitter> <Blacksmoke16> prob need 2 `?` since you have 2 params
<FromGitter> <Blacksmoke16> like ` Page.all("WHERE url_hash IN (?, ?)", ["03c0b8983f36b038dacdc72d24112c7f", "3dda60e25e0426a63d212d6847a0ea40"])`
<FromGitter> <Blacksmoke16> @vsaroha_gitlab ^
<FromGitter> <vsaroha_gitlab> @robacarp it just doesn’t find any records.
<FromGitter> <vsaroha_gitlab> @Blacksmoke16 I will try this. Wonder what’s the best way to do it for a variable length array.
<FromGitter> <Blacksmoke16> if it works i have an idea
<FromGitter> <robacarp> With that syntax you’d have to generate a sequence of ?
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/4je2
<FromGitter> <Blacksmoke16> or https://play.crystal-lang.org/#/r/4je7
<FromGitter> <Blacksmoke16> i like first one better
<FromGitter> <vsaroha_gitlab> @Blacksmoke16 @robacarp thanks a lot. That worked!
<FromGitter> <Blacksmoke16> np
vforsa has joined #amber
vforsa has quit [Client Quit]
<FromGitter> <vsaroha_gitlab> https://github.com/waterlink/mocks.cr/issues/33, given this doesn’t work anymore, do we have any alternatives?
<FromGitter> <vsaroha_gitlab> @Blacksmoke16 any ideas? ⏎ ⏎ > https://github.com/waterlink/mocks.cr/issues/33, given this doesn’t work anymore, do we have any alternatives?
<FromGitter> <Blacksmoke16> naw not really :/
<FromGitter> <Blacksmoke16> @robacarp https://github.com/amberframework/granite/pull/255 ;)
<FromGitter> <robacarp> Branch off of the json branch?
<FromGitter> <Blacksmoke16> yeae
<FromGitter> <Blacksmoke16> a lot is the same so yea...
<FromGitter> <Blacksmoke16> mostly because i didnt want to refactor ganite_spec.cr again
<FromGitter> <robacarp> 👍🏻
<FromGitter> <Blacksmoke16> i see boxes :(
<FromGitter> <vsaroha_gitlab> I have custom settings under secrets in <env>.yml files. When I try to access them in the code, the compiler complains about Nil values. Amber.settings.secrets["message_queue"] ⏎ Error in .icr_3hHziA2tpVXqOZqMeiyHdg.cr:17: instantiating '__icr_exec__()' ⏎ ⏎ puts "|||YIH22hSkVQN|||#{__icr_exec__.inspect}" ⏎ ... [https://gitte
<FromGitter> ... r.im/amberframework/amber?at=5b4d97884b583a74a72172e5]
<FromGitter> <kolyaio> trying to run on production to migrate the database: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5b4d9804cad358639d5e1303]
<FromGitter> <kolyaio> Because on producion it got different details that i set via amber encrypt
<FromGitter> <vsaroha_gitlab> > I have custom settings under secrets in <env>.yml files. When I try to access them in the code, the compiler complains about Nil values. Amber.settings.secrets["message_queue"] ⏎ Error in .icr_3hHziA2tpVXqOZqMeiyHdg.cr:17: instantiating '__icr_exec__()' ⏎ ⏎ puts "|||YIH22hSkVQN|||#{__icr_exec__.inspect}" ⏎ ... [https://git
<FromGitter> ... ter.im/amberframework/amber?at=5b4d9c55cad358639d5e2270]
<FromGitter> <jaysneg> App on production mode shows this error. Could some one help? ‘’’ERROR: Error writing file: Input/output error (Errno) ⏎ from /usr/share/crystal/src/gc/boehm.cr:71:5 in 'unbuffered_write' ⏎ from /usr/share/crystal/src/io/buffered.cr:195:5 in 'write_byte' ⏎ from /usr/share/crystal/src/logger.cr:174:7 in 'write' ⏎ from lib/amber/src/amber/environment/logger.cr:14:7 in 'log' ...
hightower3 has quit [Ping timeout: 240 seconds]
hightower3 has joined #amber
feepbot has quit [Ping timeout: 256 seconds]
feepbot has joined #amber
<FromGitter> <Thellior> Did you run the migration with env variabele on production?
<FromGitter> <Thellior> AMBER_ENV=production amber db create migrate
<FromGitter> <jaysneg> this error appears after ssh disconnection
<FromGitter> <ok2094> I'm a bit confused about the folder structure. The public folder is for static files like favicons, stylesheets and images, but what's the purpose of the assets folder?
<FromGitter> <Thellior> @kolyaio @Thellior ⏎ Did you run the migration with env variabele on production? ⏎ AMBER_ENV=production amber db create migrate
<hightower3> faustinoaq: re. Liquid, I've just added {% comment %} block as well
<FromGitter> <robacarp> @vsaroha_gitlab what are you using for your dotenv loader?
<FromGitter> <robacarp> @ok2094 the assets folder is for files which need compiled by another compiler, like sass style sheets or es6 files etc
<FromGitter> <robacarp> By default amber runs an npm process which transpiles that stuff into the public folder
<FromGitter> <vsaroha_gitlab> @robacarp i am using the default amber config loader - https://docs.amberframework.org/amber/guides/configuration
<FromGitter> <ok2094> @robacarp So I could basically put everything into the assets folder and ignore the public folder?
<FromGitter> <robacarp> I’ve never used the custom secrets section of config.yml, I’m not sure. I cant look at the source code right now but I think that looks like a bug
<FromGitter> <robacarp> @ok2094 as long as webpack is properly configured to move the asset, sure
<FromGitter> <ok2094> alright, thanks
marenz has joined #amber
wontruefree has joined #amber
wontruefree has quit [Client Quit]
wontruefree has joined #amber
wontruefree has quit [Quit: bye]
wontruefree has joined #amber
<FromGitter> <Prutheus> I want to perform params validation (https://docs.amberframework.org/amber/guides/controllers/params-validation#routing-parameters) but the problem is when I declare a `optional` parameter, at validation it still fails when this param is missing ... how to bypass that?
<FromGitter> <Prutheus> i solved it already, other question:
<FromGitter> <Prutheus> I have a json object where the key-value pairs, the values are of type JSON::Any, how to convert that to a string?
<robacarp> @Prutheus .as(String) or .to_s
<FromGitter> <Prutheus> can't cast JSON::Any to String
<robacarp> sorry, not .to_s, .as_s
<FromGitter> <Prutheus> no, to_s seems to work
<FromGitter> <Prutheus> but as(String) does not
<robacarp> .to_s will work, but it might behave unexpectedly when something isn't a string
<robacarp> #as(String) will raise when the underlying data isn't a string
<FromGitter> <Prutheus> okay, but as(String) could not get compiled
<FromGitter> <Prutheus> but to_s works, so never mind, thx
<robacarp> sorry, I typo'd again
<robacarp> it's #as_s
<FromGitter> <Prutheus> but to_s works
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #amber
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #amber
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #amber
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #amber
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #amber
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #amber
marenz has quit [Ping timeout: 256 seconds]
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #amber
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #amber
wontruefree has quit [Ping timeout: 264 seconds]
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #amber