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> <vectorselector> Granite question here... how do you query for multiple records, say `Post.all` for example, where the `Post.tags` is a (synthetic) junction-table matching many posts to many tags, and one has the index on each id in the junction-table, per Granite docs, and one is using `has_many :tags, class_name: Tag, through: TagPostJunctionTable` on the Post model ⏎ ?
<FromGitter> <vectorselector> i can't use raw sql as `column tags doesnt' exist`
<FromGitter> <vectorselector> sorry, clarifying: query for "tags contains X" for example, please and thank you
<FromGitter> <Blacksmoke16> Just define a tags method that uses findby?
<FromGitter> <Blacksmoke16> Oh join table, I don't remember
<FromGitter> <vectorselector> doh (*facepalm) find_by gives a cursor too, silly me, thank you!
<FromGitter> <Blacksmoke16> 👍
<FromGitter> <ikaru5> @eliasjpr Hope Amber will sustain! Im slowly switching everything I got in Rails to Amber and its a blessing! My favorite web framework now and Im trying to teach my colleagues the advantages. Its so much faster and simpler. I always hated reading Rails Code, but Amber is the definition of KISS for me. ⏎ Lately I found that there is no "send_file" like in Rails Controller... so I just looked up how Static File
<FromGitter> ... Controllers work and wrote my own "send_file" within a an hour. Simply because the Static Controller stuff was readable. :)
<FromGitter> <waghanza> Hi @eliasjpr,
<FromGitter> <waghanza> I have then to remove `amber` from https://github.com/the-benchmarker/web-frameworks
<FromGitter> <waghanza> I'll open a `PR` and ping you and all maimtainers, thx for your honestly
<FromGitter> <eliasjpr> Hello @KirillFurtikov, I like the way you define Amber, and our immediate goal is to find maintainers, so anyone here is interested in influencing the project direction and making it better the project please let us know. ⏎ ⏎ Amber is simple to understand the internals and has many devs appreciate that, since the better you understand the internals the better choices you can make when extending it ⏎ ⏎ As
<FromGitter> ... per the benchmarks if you like you can keep it. I personally didn’t knew that amber was listed on this list, is up to you [https://gitter.im/amberframework/amber?at=602691295500a97f82020e49]
botek has joined #amber
botek has quit [Quit: Ping timeout (120 seconds)]
<FromGitter> <damianham> > sorry, clarifying: query for "tags contains X" for example, please and thank you ⏎ ⏎ @vectorselector I don't know if it is the best approach but what I do is create View models with a select_statement that does the joins on the relevant tables which is then easy to filter with #all() or #where() and it is 1 database query.
<FromGitter> <renich_gitlab> @eliasjpr maybe it's a good idea to post this in GitHub? As a ticket?