amethyst
amethyst copied to clipboard
Amethyst is a Rails inspired web-framework for Crystal language
Hi to all members of crystal-community! I am an creator of Amethyst framework, and I passed it to crystal-community in hope that here this project will be develop. But, as...
We need to have more control over logging: 1) Control of output IO (file, STDOUT, STDERR, etc..) 2) Control over format (clear text, Logger, etc..) 3) Control via levels, warn,...
[Here](https://github.com/Codcore/amethyst/blob/0a54e305e8100b04242f7e873c96950d0eee3567/src/amethyst/http/response.cr#L11) the status code is allowed to be `nil`, causing the compiler to complain: ``` in ./libs/amethyst/amethyst/base/handler.cr:12: instantiating 'Amethyst::Http::Response#build()' response.build ^~~~~ in ./libs/amethyst/amethyst/http/response.cr:23: instantiating 'HTTP::Response:Class#new((Nil | Int32), String, HTTP::Headers)' return...
Will WebSocket be implemented in the project or should it be handled in middleware ?
We need to add some option to "run in the background". we can use `fork` ``` crystal fork do app.serve end ``` or some internal design to this this thing.
So, I'm probably doing something wrong, but I have a `before_action :authorize` in my controller and it doesn't seem to call the `def authorize` method. I see the macros defined...
pledgie returns this error, when trying to donate using PayPal: ``` The email account Receiver not in receive money enabled country is based in a country that isn't enabled to...
Though the actual error might be "can't run methods on objects in templates". ``` crystal # Controller class MyController < Base::Controller actions :index view "index", "#{__DIR__}/../views/ragas" def index @array =...
You can define `inherited` hook on base controller. Example: http://play.crystal-lang.org/#/r/7kn all the hooks can be found in this spec: https://github.com/manastech/crystal/blob/119ccc89065165bc937b3417e5ac2af2bab6e056/spec/compiler/codegen/hooks_spec.cr
in this case: ``` module SomeModule class DictController < Base::Controller ... end end include SomeModule ... get "/dict_index", "dict#index" => Route.new("dict_index", "DictController", "index") register DictController => @controllers_instances["SomeModule::DictController"] = SomeModule::DictController ......