Ruby on Rails Community Forum
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
Multiple user types App design
3
Rails
Hello,
Thanks for your time :)
My app have 3 type of humans.
1. Admins
2. Users (regular ones) | only read.
3. BusinessUsers (creating self records)
I'm using devise gem for users.
I'm interesti...
Daniel replied
Solved
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.
Go Rails Youtube videos not loading
2
General
Hey @Chris, getting a playback error on the youtube player vids. Message templates vid is an example, there were some Shrine ones that weren't working either.
Solved
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 do i run sneaker worker in rails 6.0 ,ruby '2.6.3' ?
2
Rails
I'm trying to run rails app using command foreman s
the ProcFile contains these 2 lines :
web: bundle exec passenger start -p 8000 --max-pool-size 1
sneaker_data_publisher: WORKERS=DataPublish...
lpiffer replied
Solved
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
Action Mailbox Routes
2
Rails
I'm adding action mailbox to my Rails + React app, the problem I'm having is that the mounted routes are at the very bottom of the routes file so it will not get called due to the fact that I need ...
Stephen Sizer replied
Solved
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
Rails log is to big in production?
3
Rails
Hi there, I recently view a video here talking about how to subdivide your log into multiple parts. This video talks about how you can delete them after 7 days. I forgot the title, I can't found it...
Mylan Connolly replied
Solved
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
Are you adding # frozen_string_literal: true to your config files
2
Rails
I was wondering if some of you are adding `# frozen_string_literal: true` to their config files?
Stéphane Paquet replied
Solved