Activity
I didn't know about this. That is super cool!
The enterprise_script_engine executable ingests the input from stdin as a msgpack encoded payload; then spawns an mruby-engine; uses seccomp to sandbox itself; feeds library, input and finally the Ruby scripts into the engine; returns the output as a msgpack encoded payload to stdout and finally exits.
I will have to try this out sometime. Thankfully you've got Shopify to help lock this down because it sure seems like it could be dangerous!
It's really simple, so you won't have any issues with it on Heroku or Cloudflare. There's no Javascript or anything to worry about.
Posted in The Ruby Subscript Operator Discussion
Under Feature Preview, you can enable "New Code Search and Code View (Beta)"
Check out this: https://github.com/railsadminteam/rails_admin/issues/2990
You should be able ot put this in ~/.irbrc
IRB.conf[:USE_AUTOCOMPLETE] = false
Or you can open the rails console / irb with --noautocomplete
rails console --noautocomplete
irb --noautocomplete
Posted in Renew price for my subscription
Renews at the same price. 👍
You should be able to just modify the esbuild command in package.json to run twice.
esbuild app/javascript/application.js --bundle --sourcemap --outdir=app/assets/builds --public-path=assets && esbuild app/javascript/admin.js --bundle --sourcemap --outdir=app/assets/builds --public-path=assets
In no particular order:
- Fly.io
- Render.com
- Hatchbox.io (I built this! 🤓)
- DigitalOcean Apps
- Railway
Hatchbox.io is a bit different because it runs on your server(s) and you only pay for servers. If you deploy 2+ apps on a single server, you save money because most hosts charge per-app fees.
Posted in Video Hosting
We use Wistia. It's expensive and probably cheaper done with S3 or similar.
Posted in I am new to rails.
Check out the Ruby on Rails for Beginners course and then the Series pages to learn specific Rails topics.
Yeah, they actually have to copy the Javascript into the turbo-rails gem periodically to keep it in sync. It's kind of annoying and I'm not sure if it's done automatically with each new release of Turbo.
You'll want to use https://github.com/hotwired/turbo to make the Javascript change. The Rails package just includes a copy of the latest Turbo for convenience so you'd want to fix it in the upstream Turbo JS package.
If you clone the Turbo repo, you can specify the Turbo package in your package.json if you set up an app using jsbundling-rails. That should be easier than trying to modify the gem's turbo.js file.
I'd highly recommend checking out our Rails for Beginners course which you can find here: https://gorails.com/start
Tables are very strict in their layout and so you can't do certain things like make a clickable row. That's why divs are more useful often times.
Posted in URL Based multi tenancy
Also added it to my to-do list of screencasts
Posted in URL Based multi tenancy
It's easier than you might think! You just point the domain to the server and Rails doesn't care what domain it is.
Then you can use like ActsAsTenant to match the domain with an Account. Or Account.find_by(domain: request.domain) if you want to do it from scratch
Posted in Honest opinion needed
Hey Andrew,
Most of these things change very rarely, so they're not actually outdated.
If you're deciding between Rails and Laravel, try them both! Ruby and PHP are very different languages so you might enjoy one over the other. Both web frameworks offer pretty similar options at the end of the day.
Thanks for sharing this Blake! I just chain mine together so I don't have the additional dependency. I'll have to do a screencast on multiple output files. 👍