Dynamic Single Table Inheritance with Rails Discussion
8
General
This was really fun. I wanted an easy way to introduce helpers to Notifications so by exposing them also as STI models, we could make them easily accessible with separate helper methods for each No...
benoit torrent replied
Form Objects Design Pattern Discussion
15
General
Nice episode, I've been using forms like this all over the place, especially when an AR object can be saved via many different use cases with many different "valid" states. One quibble, seem more ...
Jasper Wilde replied
How can I add i18n (Spanish <> English) for user posts in a PWA?
0
Gems / Libraries
I have a Rails site with a PWA and also a native app built w/ a wrapper. The site/app is for Hotel staff to communicate. Some of the staff speak and post in Spanish-only and some English-only. How ...
Ryan Mindigo posted
Rails 7 and postgres 15
9
Databases
I've got Postgres15 installed via Homebrew, and it's running.
When I build a new Rails 7 app with: "rails new testapppg -d postgres" I can't get it to install pg (1.4.6)
I see errors like "Unable ...
Randy Medina replied
Timestamp management with ActiveRecord::Events
1
Showcase
Hi guys!
I recently released a gem for managing timestamp fields in ActiveRecord models and I'm excited to share it with you.
By adding convenience methods on top of a `datetime` field, the gem a...
Lardius replied
New Project Rails 6 rc1 or 5.2.3?
5
General
Rails 6 should be just around the corner once they fix a couple of bugs/regressions. Since you probably won't be finished with your app by then, you won't have to worry about the upgrade if you sta...
Lardius replied
Solved
Copy Passwords To Clipboard Discussion
0
General
I don't understand the static values declaration here on the clipboard_controller. Can you throw some more light on it please ? How does that work ?
Nimit Bhandari posted
Amazon S3 in blog tutorial error
2
Rails
I am following the Go Rails blog tutorial. Currently trying to work through trying to set up Amazon S3 to upload images from the blog app. I've retraced the steps from the blog numerous times. I...
Mike Cannon replied
How to use the Browser Geolocation API with Rails Discussion
3
General
Back to Rails: I would prefer Ruby/Rails screencasts over more and more Stimulus. Please don't become a Stimulus videocast.
Tworedkites replied
Web Scraper UI Controllers & Actions Discussion
0
General
Storing Web Scraper Results in ActiveRecord models Discussion
0
General
Host PHP without breaking Hatchbox?
8
General
Hi,
I have a couple of small PHP scripts I want to host on my Hatchbox / Vultr / Ubuntu server.
Whats the best way to do that without screwing up Hatchbox?
Thanks!
Chris Oliver replied
Devise, scoped models
0
Rails
My app accesses multiple databases and I want to scope the model folder. So I would have two users types, e.g. (DB1::User, and DB2::User). I added the routes as `devise_for 'db1/user` and devise_...
gmhawash posted
Anyone using Litestack + SQLite in Production
2
Databases
How's it going? Any gotcha's worth sharing? Any special configs to getting it set up with hatchbox?
Rich Smith replied
How to Refresh the OmniAuth AuthHash Discussion
2
General
Nice tutorial
Freibuis replied
Stripe subscription - set a minimum time before cancel and stop billing
0
General
Hi,
I'm asked to make Stripe plans where the user can chose between three plans where pricing depends of the duration:
* per month (15$/mo)
* per trimester (12$/mo)
* per year (10$/mo)
For all thi...
Nathan Chalot posted
Setup MacOS 11.0 Big Sur Discussion
29
General
When installing the headers:
'sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / '
Got this error:
' installer: Error - the package pa...
anniesteuber replied