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
feepbot has quit [Ping timeout: 265 seconds]
feepbot has joined #amber
_whitelogger has joined #amber
feepbot has quit [Ping timeout: 264 seconds]
feepbot has joined #amber
<FromGitter> <sam0x17> how to get raw query string in a controller?
<FromGitter> <drujensen> > Amber generates a .encryption_key file & puts the file name into the gitignore. This is the key used to decrypt the production.enc file, correct? ⏎ @andrewc910 Yes
<FromGitter> <drujensen> > Why do we also put the key in the development.yml & test.yml? Are we not suppose to check those in? ⏎ ⏎ If you are referring to the `secret_key_base` in the development and test.yml, this is not used in a production environment so you can check these into git.
<FromGitter> <drujensen> @sam0x17 do you want the raw sql from the model?
<FromGitter> <sam0x17> GET query string
<FromGitter> <sam0x17> xD
<FromGitter> <drujensen> oh, the query string
<FromGitter> <drujensen> lol
<FromGitter> <drujensen> the context should have it...
<FromGitter> <drujensen> you can get it from the request object
<FromGitter> <drujensen> `query`
<FromGitter> <drujensen> you should be able to call `request.query`
<FromGitter> <sam0x17> thx -- `context.request.query_params.to_s` I found but looks like that might do the same thing
<FromGitter> <drujensen> we expose the `context.request`
<FromGitter> <drujensen> right
<FromGitter> <drujensen> check out the `base.cr` to see what we expose from the `context`
<FromGitter> <andrewc910> @drujensen Got it. After looking everything over, it all made sense to me. What does the key do in test/development since the environment ymls are unencrypted?
<FromGitter> <andrewc910> Does Granite support virtual columns like `column password : String, virutal: true`? Or do we just make an object attribute so it's accessible but doesn't save?
<FromGitter> <Blacksmoke16> just define a property as you would but not using the `column` macro
<FromGitter> <andrewc910> Okay, that's what i figured. Thanks!