If you want an instance created by Factory Bot, say in a rails console, follow this.
$ bundle exec rails
> class Object
> include FactoryBot::Syntax::Methods
> end
> create(:user)
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 3 years have passed since last update.
If you want an instance created by Factory Bot, say in a rails console, follow this.
$ bundle exec rails
> class Object
> include FactoryBot::Syntax::Methods
> end
> create(:user)
Register as a new user and use Qiita more conveniently
Go to list of users who liked