The following method is a refactoring placed in test_helper.rb
rails tenancy / default route-to-view mapping / same controllers, different views path issues
let’s use a routes posts_controllers#index
rails 7 inflections: unknown attribute ‘attribute_name’ for Tablename
I am trying to use rails 7 inflections and I have following code.
Rails 7 can’t edit credentials.yml.enc
Before today, there’s no problems at all!
How to run Rails 7 tests or RSpec without separate test database(s)
I have Rails 7.0 applications that query databases of other business applications. The application has to cope with data as it exists in the vendor’s database. We have no control over the schemas, and have read-only access to these databases. Rake would not be able to drop objects or seed the database even if I wanted to. Application uses several such databases. One DB connection is established in the usual way by Rails. Additional connections are established like:
Using if statement on private method inside of show or controller page
I have a submissions_controller that has two private methods below
Using if statement on private method inside of show page
I have a submissions_controller that has two private methods below