python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
ActiveRecord methods(find_by, find etc) not working when using use_transactional_fixtures = true in rspec
I am trying to move from use_transactional_fixtures = false to use_transactional_fixtures = true on my ROR application.
Many cases are failing after setting use_transactional_fixtures = true in RSpec ...
Surabhi ojha
Votes: 0
Answers: 0
How to use call method from Model to controller in Rails
I am fairly new to rails and currently working on the functionality of my personal project where I have multiple models. I have these models - Places, Favorites, ThingsToDo, User.
User, ThingsToDo, an...
Haarika Ramadugu
Votes: 0
Answers: 1
ActiveRecord inconsistent behavior?
I have a Rails 7 application, with a user model. I am experimenting with the console.
I have a User model, with only one record in it:
{"id":"1, "email":"me@myemail.com&q...
EastsideDev
Votes: 0
Answers: 1
Rails: Use custom class for activerecord attribute (update in place)
If I have a jsonb column activerecord returns the attribute as a hash but somehow retains a reference to that object so it is able to detect changes. That is, code behaves like the following
pub = Pu...
Peter Gerdes
Votes: 0
Answers: 0