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
_whitelogger has joined #amber
_whitelogger has joined #amber
_whitelogger has joined #amber
<FromGitter> <ibraheemdev> I was looking at the amber macro for routes and saw this line: ⏎ ⏎ ```controller = {{controller.id}}.new(context)``` ⏎ ⏎ What is the controller.id? Is this reflection? [https://gitter.im/amberframework/amber?at=5fa6d8ab2a354407150f5c86]
<FromGitter> <ibraheemdev> Why can't you just do `{}`
<FromGitter> <drujensen> It’s the AST node id. https://crystal-lang.org/reference/syntax_and_semantics/macros.html
<FromGitter> <drujensen> I use id so you can pass in a string or symbol into the macro and it handles the conversion.
<FromGitter> <ibraheemdev> Oh, ok, that makes sense
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #amber
<FromGitter> <JonMallozzi> Hello, I am brand new to the Amber framework, and I am struggling to find the answer in docs, but is there a way to change a form input to be date. I have a date of birth field for my User table that I would like to submit to make a user. I have tried ` == text_field(type: Time, name: "date_of_birth", value: user.date_of_birth, placeholder: "Date_of_birth", class: "form-control" ` to try making the input a date
<FromGitter> ... but that did not work and is giving me the error ` self[k] = v ` `Error: no overload matches 'Hash...` ⏎ Any suggestions on how to add this input type?
<FromGitter> <Blacksmoke16> whats the full error?
<FromGitter> <JonMallozzi> here is the full erorr
<FromGitter> <JonMallozzi> if a picture is not a good format I can type it out
<FromGitter> <Blacksmoke16> got the trace too?
<FromGitter> <JonMallozzi> on `amber watch` what is the flag for showing the stack trace. above the error, it says use `--error-trace` but `amber watch --error-trace` does not run
<FromGitter> <Blacksmoke16> :shrug:
<FromGitter> <JonMallozzi> yeah I am not finding much information on getting a stack trace so I am not sure how to provided that
<FromGitter> <Blacksmoke16> np, we can defer to someone who is more familiar with it :p