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> <Blacksmoke16> i also found a bug
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5c2d534c92cf4d2242358581]
<FromGitter> <Blacksmoke16> query params break the routing
<FromGitter> <Blacksmoke16> can either:
<FromGitter> <eliasjpr> Query params are not consider part of URI
<FromGitter> <Blacksmoke16> should at least drop everything after the `?` so the route still matches
<FromGitter> <Blacksmoke16> and just leave the query param parsing to user
<FromGitter> <Blacksmoke16> how would you define a YAML mapping to parse a `shard.yml` dependencies?
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5c2d5fe5f6166a3027ae4484]
<FromGitter> <eliasjpr> I think youre right
<FromGitter> <eliasjpr> where is this?
<FromGitter> <Blacksmoke16> where is what?
<FromGitter> <eliasjpr> the bug šŸ˜“
<FromGitter> <Blacksmoke16> what do you mean where is it?
<FromGitter> <eliasjpr> Is the issue with the `route_set.find`?
<FromGitter> <Blacksmoke16> i dont know yet, didnt start to look into it more
<FromGitter> <eliasjpr> kk
<FromGitter> <Blacksmoke16> i would vote yes tho
<FromGitter> <Blacksmoke16> @eliasjpr you going to make a PR for that bug? If not imma look into it tonight
vivus has quit [Remote host closed the connection]
_whitelogger_ has joined #amber
_whitelogger has quit [Ping timeout: 250 seconds]
<FromGitter> <vifreefly> Is there any way to get rid of webpack and live-reloading and have something similar (and much predictable, and fast) like Rails assets pipeline? I do agree that for some developers webpack is a good choice, but as for me it is doing a lot of stuff, and doing it quite slow.
<FromGitter> <cpunion> @drujensen Thanks. I want to get project path both on execution `amber watch` and `/path/to/my/project/bin/project_name`. Iā€™d try `__DIR__`.
feepbot has quit [Ping timeout: 272 seconds]
feepbot has joined #amber
<FromGitter> <drujensen> @vifreefly you can configure `amber watch` by modifying the `.amber.yml` file. The `live-reloading` can be disabled/removed from the `config/initializers/live-reload.cr` or setting it to false in the `config/application.cr`
<FromGitter> <drujensen> you can replace `webpack` with which ever flavor of js front-end you prefer.
<FromGitter> <vifreefly> @drujensen thanks for the answer! I think I will get used to Webpack, it's just something new to me, after Rails Sprockets. Another thing is problem with assets caching, but I see that it's in progress: https://github.com/amberframework/amber/issues/555
<FromGitter> <vifreefly> > you can replace `webpack` with which ever flavor of js front-end you prefer. āŽ āŽ Yes, I thinking about to try https://brunch.io/ (looks like it is much faster) as well.
<FromGitter> <drujensen> šŸ‘
<FromGitter> <vifreefly> Another question: is it expected behavior that generated controllers (and views folders) have singular (not plural) names? Or it will be changed to the plural form like Rails does?
<FromGitter> <drujensen> expected behavior
<FromGitter> <drujensen> We have had several discussions about pluralism and consensus was "it was a bad idea". You will notice the generators still pluralize the table name though.
<FromGitter> <drujensen> also the routes are pluralized
<FromGitter> <vifreefly> Is there any possible way how I can change singular Controller/Views names to pluralized? āŽ I manually renamed controller and views folder (and also spec) but getting an error somewhere in the views. āŽ āŽ Perhaps it will be nice to have a possibility tweak this behaviour inside `.amber.yml` config file [https://gitter.im/amberframework/amber?at=5c2e45abbabbc178b2208dc1]
<FromGitter> <elorest> This doesn't seem like something that would be inside of .amber.yml since it's per controller not per project.
<FromGitter> <elorest> What error are you getting. Did you fix the routes as well?
<FromGitter> <elorest> possibly partials in your view are still pointing to the old routes?
<FromGitter> <vifreefly> Yes, I renamed controller in routes.cr. The error is `undefined local variable or method 'pets' (did you mean 'pet'?)`. Also big backtrace where I can't understand the root of the problem. Will try to dig into it more
<FromGitter> <vifreefly> Yes, looks like everything works now :) There was error on my side
<FromGitter> <drujensen> @vifreefly search for `pets` and find out where its being used but not defined. More than likely in the `index.slang`
vivus has joined #amber
<FromGitter> <elorest> :)
_whitelogger has joined #amber
<FromGitter> <Blacksmoke16> @Sija how would you even do that?
<FromGitter> <Blacksmoke16> we dont know the keys for the named tuple type restriction
<FromGitter> <Blacksmoke16> could *maybe* do it like `routes.add "path/:one/:two", :payload, one: /\d+/, two: /\d+/` but i dont really like that syntax at all