Rails 3 introduced the rails {c,s,g} command format for invoking the console, server, generators, etc.
Back with rails 2 I had alias c=script/console , and others are configured to facilitate text input.
I would like to do the same for rails 3, but I still support rails 2 applications. Can I have an alias / function / of another shell that checks for the existence of script / foo and runs it if it is, otherwise run the rails 3 equivalents?
Sorry for the lazy question; bash / zsh scripting is designed to rot one imho brane, and I rather hope someone else can handle it.
noodl source share