-
### Steps to reproduce
```ruby
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
# gem "rails", github: "rails/rails", branch:…
-
Liza suggested that we validate maximum length for the "vehicle damage area" (`incident_report_damage_to_bus_x`). I'll try to see if there's anything else we should add validations to in the fields.
-
I am trying to use this gem on a moderate sized rails application that is a conversion from a large PHP application. I am new to Rails and Ruby (one year) but have 40+ years of dev experience in dozen…
-
```
class Customer < ApplicationRecord
belongs_to :organization
end
```
by default Rails validates this association as `required`, meaning if you do net set an `organization_id`, record crea…
-
cd /opt/forem
rails console
user = User.find(1)
user.add_role(:single_resource_admin, Space)
get error below
![image](https://github.com/user-attachments/assets/88e1209c-518d-435c-b50b-5fcf59…
-
#17 was asking how to use `phone` in model validations. This would be a nice feature but it isn't on the roadmap.
-
### Steps to reproduce*
Run test suite against rails edge
### Expected behavior*
Tests pass
### Actual behavior*
```
Failure:
ClientSideValidations::FormForActionViewHelpersTest#test_…
-
When using Rails 5, belongs_to: associations are automatically validated to be existing. We included unit tests to ensure this behaviour, i.e. we test that a model with an unset belongs_to relationshi…
-
### Steps to reproduce
```ruby
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org/"
gem "ostruct"
gem "rails"
gem "sqlite3"
e…
-
gaand updated
8 years ago