Ruby on Rails Community Forum
Rails for Beginners Part 28: Setting Records with Before Actions Discussion
0
General
Multiple SSL certificate for a multiple domain in a multi-tenant application.
3
Servers
How do I configure ssl certificate for multiple domain. Deployed application using this guide "Deploy Ruby On Rails:
Ubuntu 20.04 Focal Fossa in 2020".
Chris Oliver replied
Rails 6 basics issue
1
Testing
I've been out of the rails game for a bit too long it seems. I tried to do a basic set up today to get pack into practice, using RSpec and Capybara, but just rails new -T and installing the gems c...
Chris Oliver replied
Active Storage - Bulk importing files stored locally
3
Rails
Hi Chris,
I am adding active storage file uploading as a new feature to an existing Rails application. I have at least a couple of thousand PDF files with a standard naming format that looks like t...
Willard replied
Data are different between the one from association and the one from the actual table
0
Rails
I created 2 tables, Baby and BabyMonth. The BabyMonth has association with Month as well.
There are associations between them that Baby has_many BabyMonths.
After I soft_delete all baby_months by ...
Calla Jiyoung Lee posted
get data from once working db
1
Databases
hi there,
quite a while ago I threw together a modest linguistic rails app demonstrating use of Russian 4-letter words in action based on ruby 2.3.3 which was deployed and worked online OK until th...
Chris Oliver replied
RSpec w/capybara vs Mini Test
6
Testing
Hey guys,
what are your thoughts on RSpec vs Mini Test. Which one do you use and why?
Cheers,
Drilon
Chris Oliver replied
Rails latest (6.1.1) with Ruby latest (3.0.0)
4
General
Starting to teach another semester I like to recommend the latest versions that work correctly and/or are recommended by the maintainers. I can’t find a proper recommendation, and I’ve seen a few g...
Pito Salas replied
How do I use phonelib gem for a nested resource?
0
Rails
I am setting up telephone validation for a Lead model. Leads have a field called :phone. I'm using phonelib to validate the contents of that field. My New Lead form is nested within a second model,...
Seth posted
Writing Tests for Rack Middleware Discussion
2
General
Great video Chris.
Best way to approach these 2?
1
Rails
Morning everyone,
I have two issues. First off, I have a meal planning app. I want to display # of recipes #&# mealplans a particular user has (obviously user would have to be logged in). ...
John replied
Preventing Conflicts with Optimistic Locking Discussion
1
General
Good video
Sean replied
F.submit not creating object
1
Rails
Hi,
I have a Store object with some nested attributes which I display in a wizard. But when I want to press the submit button, nothing happens and doesn't create a store.
I use <%= f.submit cla...
William Kennedy replied
How to upgrade rails 5.2 to 6.0
0
Rails
I'm trying to upgrade rails but stuck on
"bundle update rails"
I'm following this article https://fullstackheroes.com/rails/upgrade-to-rails-6/
mikkycoder posted
Digital Ocean Spaces does not respect ACL Public-Read (Active Storage)
2
Rails
Hello guys,
I'm using Rails 6.1 (Edge) and I noticed a possible compatibility issue between Digital Ocean Spaces with the AWS S3 specification.
When we configure the service as "public: true" an...
Alisson Patrick replied
syntax error, unexpected tREGEXP_BEG, expecting end-of-input
0
Rails
I'm trying to run a script but facing the error, I'm pretty new to the rails console.
```RAILS_ENV= qubole rails runner db/scripts/migrate_bulk_users_to_new_emails.rb /usr/lib/tapp2/db/scripts/mi...
kumar0205 posted
How to use Stimulus JS 2.0's new Values and CSS Classes APIs Discussion
5
General
Chris's teaching is above average. Congratulations for the great episode.
Lucius Choi replied
How do I pass params to Active Record Model has_many?
0
Rails
Hello everybody,
I have a model: account.rb, with has_many condition like this
```
has_many :purchases, -> { where(available: true, workspace_id: nil).order(id: :desc) }
```
Now I want to pas...
quydox posted
Updating Rails Applications across Rails versions?
5
Rails
Question, how do I go about handling the update process for my Rails apps?
Example: I setup many apps with Rails 4.0.0 and currently 4.2.0 is out. What's the update process look like? I tried to ...
Ernesto Tagwerker replied
Having some Issues regarding Rails 5.2 upgrade
3
Rails
Hi everyone,
I was working on using ActiveStorage on an app I had begun like 6month to 1year ago. So Rails wasn't the right version and I put 'gem 'rails', '~> 5.2', '>= 5.2.2' ' in my Gemfi...
Ernesto Tagwerker replied