Activity
Yes definitely a feature that's coming soon. I wanted to make sure I safely did these and didn't cause any major issues when I implemented this. Some people will want the db removed, others might not, and so on. I think I will likely remove the app and the Nginx config, but retain the database on your server so you don't lose any important data.
Posted in Using Webhooks with Stripe Discussion
You can just listen to the charge.failed event and send an email accordingly if you want. Even better, you can use a service like Profitwell to handle the failed payments (and soon to expire cards) for you and let them optimize the email text and things. That's what I use and it's generally better at recovering failed payments than your own stuff because they can learn and improve over a vast set of businesses rather than just your single one.
I do what I can. :)
Yep. And here's the link to the redirect_to override from the gem: https://github.com/turbolin...
If you ask for JS back and you're using Turbolinks, it will actually send back a Turbolinks.visit() to redirect you on success which is awesome and means everything is handled like a single page app. You still have to handle the JS side for failure, but there's some talk about having that automated as well with some changes to Turbolinks to replace the current page with the standard re-render on failure. For now you have to just insert errors on the page manually.
You can always just grab the url from the wrapper form. The reason I didn't do that in these episodes was the rails_ujs library was doing something weird with the button clicks and so I left it out. Normally I would just use Rails to render a form tag and then use Vue to make it work, so then on submission Vue can just simply grab the url from the form (and csrf token too).
In that situation, I would probably just leave the JSON alone, serialize it with the wrong names, and then at the very end go through and rename those properties. You could do that on either side as well, in the JS or in the controller. It wouldn't really matter, but it might be easiest to do in JS.
Posted in The Params Hash | GoRails
You know, I don't believe I ever got around to it. Going to record it this week.
Posted in Subscriptions with Stripe Discussion
Thanks for the reminder, I have been planning on doing a new episode covering the new Stripe Elements JS library. It seems a little less clear than the old version at a first glance, but I haven't implemented it just yet.
Posted in Hatch: Deploying my first App
Hmm! I guess probably since you tested it earlier on I probably fixed some of the bugs around the Bitbucket stuff. I will wait until another report of that issue and see if it's a consistent thing or not. :)
If you run into any other issues, just ping me and I'll make sure it gets all fixed up.
Posted in Extending Rails flash
Hey Jiri,
Do you know for sure if that file is being loaded? I think that it should be since it's in app, but I would just want to verify that.
You can also just simply define this in an initializer if you want a simpler way of doing this. It would look something like this:
# config/initializers/flash.rb
class ActionDispatch::Flash::FlashHash
def my_method
#...
end
end
And last question, what's the goal you're trying to accomplish with this?
Posted in Do I have to publish the source code of a commercial app if I use a GPL licensed gem like prawn?
This should answer some of your questions: https://softwareengineering.stackexchange.com/a/47048/1981
Posted in Hatch: Deploying my first App
Haha! Perfect. Only you and the internet will know. ;)
Trying to think why that happened. Did you add your Bitbucket account after your server was provisioned?
Posted in Hatch: Deploying my first App
I just manually re-ran the add SSH key script on your server. You should see the server's SSH key in your bitbucket account now at https://bitbucket.org/account/user/USERNAME/ssh-keys/
Was doing support and accidentally posted as the wrong account in case you saw the email notification from the wrong user. ;)
Hey Stan,
You mean a code example for the all-day events?
Meant to reply sooner, but all your ssh keys are located in ~/.ssh so you can backup that folder and just replace it on your new install to use the same keys.
Alrighty, source code is posted now! https://github.com/gorails-...
Also included some extra refactoring and goodies like a "help" command and a "url" command to open a url in Safari.
Thanks Shawn! 🤘
Posted in Hatch: Deploying my first App
So two things here:
- Did Hatch successfully add an SSH key to your BitBucket account? I've had a ton of trouble with their API on this.
Hatch generates a key for your server so it can check out your code and that way it doesn't have to know your personal SSH key either when it clones your repo.
- You have to add your SSH key to the server with the SSH Keys tab in the UI so you can SSH in. By default, there aren't any keys on the server, so you won't be able to login until you do that.
You can also add the SSH key to your account which will be pre-installed on all the new servers you setup as well for convenience. You'll still have to add it to the already created server individually though.
Yeah I'm going to upload it as long as I get permission from the original author. :)