The console is part of your app. Treat yourself right.
$ ./console Loading production environment (Rails 2.0.2) >> me = User / :defunkt => #<User id: 2, ... > >> repo = User / :defunkt / :gist => #<Repository id: 61713, ... >
User.instance_eval do def /(name) find_by_login(name.to_s) end end Repository.instance_eval do def /(name) find_by_name(name.to_s) end end
a dude who lives in san francisco, works on github, and pontificates at err the blog.