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:<div><br></div><div>"cd /path/to/my/rails/app; rails g model MyModel name:string"</div>
<div><br></div><div>for the generator to succeed.<br><div><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 9:43 AM, Mikael Henriksson <span dir="ltr"><<a href="mailto:mikael@zoolutions.se">mikael@zoolutions.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font size="2"><font face="tahoma,sans-serif"><div><font size="2"><font face="tahoma,sans-serif">That doesn't really work. If I for instance want to run<br>
"rails g model MyModel name:string"</font></font></div>
<div><font size="2"><font face="tahoma,sans-serif"><br></font></font></div><div><font size="2"><font face="tahoma,sans-serif">TextMate just bugs out with an error message.</font></font></div><br clear="all"></font></font><div class="im">
<span style="font-family:Helvetica;font-size:12px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<font color="#222222"><font face="arial, helvetica, sans-serif">Mikael Henriksson</font></font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><font face="arial, helvetica, sans-serif"><br>
</font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="arial, helvetica, sans-serif">Tel: +46 (0) 730- 393 200 </font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<font color="#222222" face="arial, helvetica, sans-serif"><a href="mailto:mikael@zoolutions.se" target="_blank">mikael@zoolutions.se</a></font></div></span><div><br></div><br>
<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Tue, Jan 18, 2011 at 10:08 PM, Dru Kepple <span dir="ltr"><<a href="mailto:dru@summitprojects.com" target="_blank">dru@summitprojects.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Jan 18, 2011, at 11:54 AM, Mikael Henriksson wrote:<br>
<br>
The thing I hate the most about the otherwise great app is the possibility to run terminal (rails) commands from within Textmate.<br>
<br>
Is that at all possible? It would save me loads of confusion switching between windows.<br>
<br>
Mikael Henriksson<br>
<br>
<br>
</div>You can press Control-R on any line to run that line of text on the command line.<br>
<br>
+dru<br>
<br>
<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</blockquote></div><br>
</div></div><br><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br></blockquote></div><br></div></div>