http://amberframework.org - Questions? Post on StackOverflow and contribute to community knowledge! https://stackoverflow.com/questions/tagged/amber-framework - IRC? Share your chat messages across http://webchat.freenode.net/?channels=#amber
eliasjpr on dj-crystal-1.0.0-rev
Ignore crystal version (compare)
eliasjpr on dj-crystal-1.0.0
Update shard.yml Uses crystal … (compare)
drujensen on dj-crystal-1.0.0
update to crystal 1.0.0 (compare)
json_support
doc page went, but thats prob how you'd want to do it
on_to_json
is a thing that gets called after the ivars have been serialized, e.g. so you can add more data
on_to_json
method to add them after the fact, which would set members
JSON key, to the array of members you'd get if you did like model.members
Code in macro 'render'
16 | render_template("layouts/#{false}", "src/views")
^
Called macro defined in lib/amber/src/amber/controller/helpers/render.cr:33:13
33 | private macro render_template(filename, path = "src/views")
Which expanded to:
1 | Kilt.render("#{"src/views"}/"layouts/#{false}"")
^
Error: expecting token ')', not 'layouts'
I'm wondering if anyone here as encountered an Uncaught (in promise) DOMException: An invalid or illegal string was specified
error while using the amber.js
file for WebSocket connections. I'm currently trying to connect to my Amber websocket endpoint from a Vue application which is where I'm getting this error, the odd thing is that I can get it working standalone from the DevTools browser console via a simple HTLM file, just not within Vue.
Been bashing my head on this for a few days now. Any help or direction will be appreciated since I can't find many resources/tutorials on the amber.js
file.
I have a project I am wanting to get off the ground and could use some help, as I said, I am pretty well versed in ruby / rails / etc, but don't have the time needed to come up to speed with a new environment on my own... I would be interested in talking to (and paying) someone about helping me get off the ground with things like getting setup / pair programming ... I can already scaffold things and have an idea of what is going on but I like having a mentor to show me the ropes...
Hi Matt - one way of getting going with something beyond the standard app is to use a recipe. Disclaimer: I wrote the recipe feature for Amber and some of the recipes out there so I am in favour of that option :) The recipes I contributed are a bit out of date but there is all kinds of stuff implemented in them which you can use as a basis for your projects. In particular there are some recipes with a React SPA frontend. If you follow the Recipes section of the documentation you should be able to get going with a recipe for an earlier version of Amber. Then it's a case of updating the shard.yml to the latest version of crystal, amber and all the dependencies and fixing the deprecated stuff and breaking changes. To find out what the dependency versions should be create an amber app with the latest version and compare the shard.yml. The problem you then face is dependency hell in the Javascript side of things. I am completely moving away from Javascript front ends and adopting Flutter for all front end development, my projects are primarily mobile based anyway but Flutter is now available for the web in stable branch so I will be trying it soon.