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> <RubyRebbe> @Blacksmoke16 thanks.
<FromGitter> <dscottboggs_gitlab> do you guys do something weird with redirects or links? I build the "quick start" app and it doesn't work on firefox, just chromium.
<FromGitter> <anamba> i use firefox as my main browser, no issues here
<FromGitter> <dscottboggs_gitlab> by "doesn't work" I mean clicking on any link just takes you to the page you're on. You can load any specific page, but once you're there you're stuck
<FromGitter> <dscottboggs_gitlab> amber_app_not_working.mkv (https://files.gitter.im/amberframework/amber/hySx/amber_app_not_working.mkv)
<FromGitter> <dscottboggs_gitlab> oh crap
<FromGitter> <dscottboggs_gitlab> no I thought it might've been an extension but nope
<FromGitter> <dscottboggs_gitlab> here's the code (https://github.com/dscottboggs/try-out-amber)
<FromGitter> <dscottboggs_gitlab> @anamba what OS?
<FromGitter> <anamba> high sierra
<FromGitter> <dscottboggs_gitlab> great, probably another linux-specific firefox bug, I'll check from mac os
<FromGitter> <dscottboggs_gitlab> yeah it works fine on macos
<FromGitter> <anamba> did you try turning it off, and then back on again (only half joking there... every once in a long while my firefox on macos also gets a bit weird)
<FromGitter> <dscottboggs_gitlab> hah, I actually noticed it on one computer, and switched to another; same problem. So Arch, Ubuntu, and Android firefoxes all have this problem, but macos FF and chromium are fine
<FromGitter> <anamba> ah ok. well, that's probably better... in a way. not for you though.
<FromGitter> <dscottboggs_gitlab> well, I'm gonna go make dinner, let me know if anyone has any idea what steps I can take to help troubleshoot this.
<FromGitter> <Blacksmoke16> @drujensen I have custom PK on associations code complete, just need to write some specs and test it...but keep getting sidetracked, prob this weekend sometime ill have a PR
<FromGitter> <anamba> i'm working on the multiple select thing again, and still having trouble with it. but now the issue seems to be in how the params are being handled. i see this in @raw_params: ```"categories_ids" => ["70b02202-7ef4-48d8-9260-72dc1cd8ef6e", "a059a8e8-615c-4a45-9aaa-d8417b7b7b96"]``` but after a trip through the params validator, it's just ```"70b02202-7ef4-48d8-9260-72dc1cd8ef6e"```
<FromGitter> <Blacksmoke16> hmm
<FromGitter> <anamba> the applicable rule is just ``` optional(:categories_ids) { true } ⏎ ⏎ `````` [https://gitter.im/amberframework/amber?at=5bed0e614e7ca14520aa44c8]
<FromGitter> <anamba> so i figure it should just pass right through unchanged
<FromGitter> <anamba> oh ``` getter params = {} of String => String?``` https://github.com/amberframework/amber/blob/master/src/amber/validators/params.cr#L67
<FromGitter> <anamba> aha. the way HTTP::Params works, all the hash values are arrays. typically they just contain one element. somewhere, we are assuming that there will always only ever be one
<FromGitter> <anamba> dang. so it turns out it's an issue with HTTP::Params itself. ``` def (name) ⏎ Returns first value for specified param name.``` https://crystal-lang.org/api/0.26.1/HTTP/Params.html#%5B%5D%28name%29-instance-method
<FromGitter> <anamba> ah. using `#fetch_all` instead should help. right there, i think: https://github.com/amberframework/amber/blob/master/src/amber/validators/params.cr#L26 but then... types :(
<FromGitter> <anamba> sorry, couldn't figure out a good way to make it work for everyone magically... i will just call `#fetch_all` myself as needed for now (this app's naming conventions make it simple enough)
<FromGitter> <dscottboggs_gitlab> how do you do a form tag with ECR? `<%= form .... do` doesn't compile and `<% form ... do ` doesn't show up on the page
<FromGitter> <anamba> jasper does have a form helper (https://github.com/amberframework/jasper-helpers/blob/master/src/jasper_helpers/forms.cr) but most of the time i end up just writing the html myself.
<FromGitter> <dscottboggs_gitlab> yeah it doesn't seem to be working from ECR :/ I'll just use text, thanks
feepbot has quit [Ping timeout: 268 seconds]
feepbot has joined #amber
<FromGitter> <elorest> @dscottboggs_gitlab @anamba There is a bug in ecr that doesn’t all for you to print crystal code blocks. This works fine in slang which I highly recommend.