<FromGitter>
<anamba> jasper's select_field doesn't appear to handle multiple select. is that correct? i can look into fixing it, but wanted to confirm first. i'm still new to all this (jasper, amber, crystal).
<FromGitter>
<elorest> My belief is that it does handle multiple select. What have you tried?
<FromGitter>
<elorest> Ok so multiple select will work but won’t auto select more than one previously selected value.
<FromGitter>
<anamba> yeah, the part about not being able to go back and edit (`selected` not accepting an array) was what i meant by not working. i could have been more specific. :) the way you suggested makes sense to me, i'll try that. and will submit a PR (assuming you don't get to it first).
<FromGitter>
<anamba> ok, github.com is in some kind of crazy split-brain state right now, making life very difficult. i'll check back later.
_whitelogger has joined #amber
<FromGitter>
<anamba> Created PR #31.
<FromGitter>
<benbonnet> hello all, getting into amber (step by step rather than with the full generator); just wondering how to start properly the minimal configuration example (https://docs.amberframework.org/amber/examples/minimal-configuration). passing the filename as a cli parameter ? does `amber watch` would work with such a config ?
<FromGitter>
<c910335> in your shard.yml ⏎ `name: api`
<FromGitter>
<benbonnet> @c910335 thx alot! i see here it starts now
<FromGitter>
<benbonnet> things do work. that is, amber watch seem to include some kind of "npm watcher"
<FromGitter>
<benbonnet> can it be excluded ?
feepbot has quit [Ping timeout: 240 seconds]
feepbot has joined #amber
<FromGitter>
<Blacksmoke16> its prob a thing watching for front end js/css changes
<FromGitter>
<Blacksmoke16> @robacarp @drujensen I had a thought last night
<FromGitter>
<Blacksmoke16> it would be a super breaking change, but i was wondering if it would be possible to change the field macro to not be a macro, but annotation based
<FromGitter>
<Blacksmoke16> way i imagine it we would just iterate over instance_vars in the `__process_fields` macro
<FromGitter>
<Blacksmoke16> if the annotation is set add it to the `CONTENT_FIELDS`
<FromGitter>
<Blacksmoke16> if name is present use that as the column name, otherwise ivar name
<FromGitter>
<Blacksmoke16> then base `PRIMARY` on if any annotation has `primary: true`
<FromGitter>
<Blacksmoke16> otherwise use the Int64 auto inc
<FromGitter>
<Blacksmoke16> but will come down to do we think its worth the breaking change, and assuming the implementation works out. I'll keep you posted on a prototype
feepbot has quit [Ping timeout: 276 seconds]
feepbot has joined #amber
<FromGitter>
<Blacksmoke16> awe, i dont think it'll work
<FromGitter>
<Blacksmoke16> dont have access to the ivars outside of a method
<FromGitter>
<RubyRebbe> I want to put a birth date in a Person model object in Granite. In Amber generate model, what is the correct type for the field? And can I assign a Crystal lang. Time object to that field?
<FromGitter>
<Blacksmoke16> Time would work yea
<FromGitter>
<Blacksmoke16> Or string, depends on what you want to do with it
<FromGitter>
<RubyRebbe> Thanks @Blacksmoke16 . I want to do a query (where ...) finding all persons with a birth date in a particular range: from_date , to_date