Activity
So how would this work if you have multiple fields on your form? Would you have to send them all to the server to persist the state? Or does it "remember" that other fields weren't submitted on the reflex? I'm guessing it doesn't, since it re renders the whole view. So would you have to bind all the values on the form to a target in a stimulus controller and send all of them?
Yeah I was trying that too!! It works fine for running regular tests I think, but it looks like you'd have to do a bit of an extra setup for system tests and chromedriver-helper. Have you had any luck running system tests?
Anybody has gotten github actions to work on the latest versions of Ruby? (2.6.4, 2.6.5)? Looks like the setup-ruby action has been outdated for a cople of months now.
Posted in Design a store credit schema
Hi, I was wondering if anyone has some experience building a store credit system into a market place style app. Eg: Users could purchase 100USD in adavance and receive 120USD in store credits as incentive. Then they could check out products with this credit.
So far I've been checkint out the solidus platform. They have two tables, one for the store_credit purchase which records the available amount, used amount and remaining amount. Then there's store_credit_events which records the individiaul transactions.
Then when it comes to payments, they handle it as another payment method which the user can select, however it starts getting very complicated as I'd need to develop a somewhat generic way to handle different payment methods.
I'm feeling a bit over my head with this and was wondering if anyone could point me in the right direction to get this feature off the ground.
Thank you,
Felipe
I've been trying to get direct uploads to work on production (it's fine on localhost) but I'm getting a Cross Origin Error when I test live with SSL enabled.
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource
Any idea why this might be happneing?
Cheers.
I was wondering if you've been deploying Webpacker apps with capistrano.
I've been dealing with failures due to Node.js v8.10 running out of memory on
rake assets:precompile.
Not sure where to look to fix this issue, since my Webpacker assets aren't that big to begin with. (React + Apollo-client do add some weight the the bundle, plus a couple custom components).
I'm runing on a standard 1GB DO droplet which I'd guess should be enough for now, I'll try increasing it's memory but it doesn't seem like a sustainable solution as my app keeps growing and I add functionality.
Anyways, just wondering if you'd encounterd a similar issue so you could point me towards the right direction to fix it.
Cheers, love your casts and this community.
Felipe
Are there any special considerations/configs to take into account in your experience if you plan on using Redis for both?
Thanks!
How would you go about showing images uploaded via ActiveStorage on your vue components?
In ERB the image tag magically renders the image, but I'm not so sure how it would work on the webpacked vue files.
Hey Chris! Are you still using this method in production? I haven't been able to get the backup gem to work with ruby 2.4.x, have you gotten it to work with rails 5.1 and a recent ruby?
Looks like it's working fine. For vagrant 1.9.3 you have to add , (host_ip: "localhost") to the line config.vm.network :forwarded_port, guest: 3000, host: 3000, at least on Windows machines due to https://github.com/mitchell...
Hey Chris. I Just wanted to thank you for the quick response.
I'm actually very happy with the simple_calendar gem. At first I was a bit confused due to the simplicity ("wait is this just a table with dates?") but as I saw how easy it's been to extend and customize for my use case I'm honestly loving it.
So thanks again for putting out great things to the rails community!
Hey Chris! Is there a way I can display color coded events based on an event_type? Say in this example I could have "work_meetings" or "personal_meetings" and one would be blue and the other one yellow. Is there a way to achieve this?