-
PS - this is @aviflombaum
This content is great. However, students will read the README in Ironboard and might not ever see the support files for this lab if they don't actually open the repo in Git…
-
Can not migrate DB after upload of old Canvas version DB backup.
Need help with data migration.
1. Fresh Canvas Installed with Ruby 2.6
2. DB restored from backup made on older Canvas vesion (F…
-
# Environment
* Ruby 3.2.2
* Rails 7.1.1
* ActiveHash 3.2.1
# Problem
When accessing a `belongs_to` association, if the related id is missing then a query for `id IS NULL` is made. This is …
-
Hi, guys!
I have the following models:
```ruby
ActiveRecord::Schema.define do
create_table "apartments", force: true do |t|
t.integer "house_id", null: false
t.integer "number"…
-
Environment:
ruby 3.1.1
rails 7.0.3
devise 4.8.1
Reproduce:
`rails g devise:install && rails g devise user`
`rails test`
Result:
All test fail because user fixtures fail unique constra…
-
@pyromaniac - trying to following the example in the documentation that indicates
``` ruby
let(:guid) { "1dd74dd0-d116-11e0-99c7-5ac5d975667e" }
it "should be able to find an email by the uuid" do
…
-
Hi,
I've built a crud app with mootensai/yii2-enhanced-gii, there are related tables by foreign keys (n:1, n:m).
In the case I got an validation error, after pressing update a second time the ap…
-
With an extremely simple model and spec:
class User < ActiveRecord::Base
validates_uniqueness_of :username
end
describe User do
should_validate_uniqueness_of :username
end
The following error is…
-
https://p2y.top/posts/drafts/go-i18n/
传统的解决方案 i18n是软件开发中常见的一个需求, 很多流行的开发框架如 ruby on rails, springboot 对它有内置的支持。 rails 的 i18n 是其中的佼佼者, 我们看看它解决了哪些问题,是如何解决的。
i18n 资源文件 通常开发者需要按照框架的约定创建资源文件,一般会在目录或文件名中…
-
## Issue
All the core business logic is in the `KeywordsController` controllers.
This has many consequences, for example, is it harder to write unit tests, the business logic cannot be reused for …