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

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

Migrating From jQuery to Vanilla Javascript Discussion

47
General
`document.querySelectorAll` looks like return an array, but in fact it is an object. It's important to keep this in mind in order to avoid some problems iterating the dom elements.
Dan LeGrand 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

Using Deprecation Warnings in Rails Discussion

0
General

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

Find By Short Code Discussion

0
General
Doesn't this still use the `set_link` code path at the end of the episode? We should be getting rid of that and adding ``` @link = Link.find(params[:id]) ``` under the `show` method?
Gaurav Keswani posted

I am receiving this error "BlogPostsController#index is missing a template for request formats: text/html"

3
Rails
What I need help with is this - my file path seems correct, however, my views/layouts are not separate. My file path is: app> views> layouts> blog_posts> index.html.erb What I am wond...
Roman Vetter replied

Setup Searchkick with Minitest

0
Testing
Hi everyone, Just followed the searchkick official's docs to setup the tests, so that I can test my search controller: Let's assume I have the following model: ``` class User < ApplicationR...
Patrício posted

GET http://127.0.0.1:3000/assets/stimulus-loading.js net::ERR_ABORTED 404 (Not Found)

0
Javascript
Hi all! Sorry to inform that after some manipulations with my js part of the rails 7.1.2 project I am constantly getting an error : `GET http://127.0.0.1:3000/assets/stimulus-loading.js net::ERR_AB...
Tetyana Goncharenko posted

How do I have 2 users associated with a model

0
Databases
I have a model that I want 2 users to have an association with. So this model would have a proposer (user) and a challenger (a different user). I am getting a bit tied up in spaghetti around whethe...
dwedigital posted

Want to stay up-to-date with Ruby on Rails?

Join 90,472+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.