Save your time in rails console by using irbrc to provide shortcuts for frequent commands
Finding your own user account in rails console is very frequent command in daily work. But key the full command is very inconvenient and waste time. You can use this technique to save time!
~/.pryrc if you are using pry)
class Dev def self.me User.find_by_email("firstname.lastname@example.org") end end
Then in rails console:
 pry(main)> user = Dev.me User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'email@example.com' LIMIT 1 ...
You can put most frequent used commands in there. But watch out for name collision.
p.s. I used to put a
app/models/dev.rbin every projects. But it gets inconvenient when maintaining too many projects. Also your colleagues might have a different shortcut preferences. So I decided to put them in