8 Matching Annotations
- Dec 2022
-
-
class Project< ApplicationRecord belongs_to_many :employees end
-
- Feb 2022
-
blog.saeloun.com blog.saeloun.com
-
class Note < ApplicationRecord delegated_type :authorable, types: %w[ Customer Employee ] end
-
-
-
belongs_to :city
-
-
github.com github.com
-
Country State (belongs to country) City (belongs to State) Neighborhood (belongs to city)
-
Address (Belongs to Neighborhood and City, because neighborhood is not required)
-
- Jun 2021
-
github.com github.com
-
index_errors: true
index_errors: true
-
- Feb 2021
-
github.com github.com
-
I have a Post object that has_one :schedule with accepts_nested_attributes_for :schedule as well. The latter method sets autosave: true, which unfortunately has the effect of hoisting up errors into the parent object so that the errors object on Post looks like this: (byebug) post.errors.details {:"schedule.publish_at"=>[{:error=>:blank}]}
-