When you execute a command, $PWD is '/', not the directory of the current file or project. So, assuming your preferred `rails' command is on your path, you'd need to have:

"cd /path/to/my/rails/app; rails g model MyModel name:string"

for the generator to succeed.

On Wed, Jan 19, 2011 at 9:43 AM, Mikael Henriksson <mikael@zoolutions.se> wrote:
That doesn't really work. If I for instance want to run
"rails g model MyModel name:string"

TextMate just bugs out with an error message.

Mikael Henriksson

Tel: +46 (0) 730- 393 200 




On Tue, Jan 18, 2011 at 10:08 PM, Dru Kepple <dru@summitprojects.com> wrote:
On Jan 18, 2011, at 11:54 AM, Mikael Henriksson wrote:

The thing I hate the most about the otherwise great app is the possibility to run terminal (rails) commands from within Textmate.

Is that at all possible? It would save me loads of confusion switching between windows.

Mikael Henriksson


You can press Control-R on any line to run that line of text on the command line.

+dru



_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate



_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate