I want to select only specific attributes from a model(id,name).
The SQL-command can be for example:
SELECT id,name,username FROM Users
Do you know h
User.select(:id, :name, :username)
with condition, you can write like: User.select(:id, :name, :username).find_by(:age 22)
User.select(:id, :name, :username).find_by(:age 22)