# Ruby on Rails & Textmate

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-textmate/110605>\
**Category:** Rails\
**Created:** [July 27, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-textmate/110605 "2007-07-27T23:53:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![irock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ec8ea/32.png) [@irock](https://www.ruby-forum.com/u/irock)\
**Post date:** [July 27, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-textmate/110605/1 "2007-07-27T23:53:40Z")

</div>

I’m new to textmate also and I was wondering how can you get it to  
integrate with the Ruby on Rails.  
I know there is like a “popout with navigation for the folders” - the  
best way I can describe it.

How can I get this?

Also I have downloaded CocoaMySQL and I have MySQL installed, I am  
trying to connect. I have not set up anything in MySQL yet (I have  
installed the fix for Mac OS X). I assume that I just tell it to connect  
to “localhost”

I don’t have a username or password?

At work I do a very little bit with Oracle… so maybe MySQL is similar  
… would it have a configuration file?  
Do I have to edit anything here to connect?

I do realise that this is the Ruby on Rails forum… but maybe someone  
can help me?

Cheers

---

<div class="post-metadata">

**Author:** ![irock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ec8ea/32.png) [@irock](https://www.ruby-forum.com/u/irock)\
**Post date:** [July 28, 2007, 4:04am UTC](https://www.ruby-forum.com/t/ruby-on-rails-textmate/110605/2 "2007-07-28T04:04:26Z")

</div>

Shane K. wrote:

> I’m new to textmate also and I was wondering how can you get it to  
> integrate with the Ruby on Rails.  
> I know there is like a “popout with navigation for the folders” - the  
> best way I can describe it.
> 
> How can I get this?

I’ll answer this part. Choose “New Project” from the File menu and go  
from there…

jp

---

<div class="post-metadata">

**Author:** ![irock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ec8ea/32.png) [@irock](https://www.ruby-forum.com/u/irock)\
**Post date:** [July 28, 2007, 4:09am UTC](https://www.ruby-forum.com/t/ruby-on-rails-textmate/110605/3 "2007-07-28T04:09:40Z")

</div>

Jeff P. wrote:

> Shane K. wrote:
> 
> > I’m new to textmate also and I was wondering how can you get it to  
> > integrate with the Ruby on Rails.  
> > I know there is like a “popout with navigation for the folders” - the  
> > best way I can describe it.
> > 
> > How can I get this?
> 
> I’ll answer this part. Choose “New Project” from the File menu and go  
> from there…
> 
> jp

Thanks!

---

<div class="post-metadata">

**Author:** ![irock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ec8ea/32.png) [@irock](https://www.ruby-forum.com/u/irock)\
**Post date:** [July 28, 2007, 4:34am UTC](https://www.ruby-forum.com/t/ruby-on-rails-textmate/110605/4 "2007-07-28T04:34:33Z")

</div>

On Jul 27, 2007, at 9:04 PM, Jeff P. wrote:

> Shane K. wrote:
> 
> > I’m new to textmate also and I was wondering how can you get it to  
> > integrate with the Ruby on Rails.  
> > I know there is like a “popout with navigation for the folders” - the  
> > best way I can describe it.
> > 
> > How can I get this?
> 
> I’ll answer this part. Choose “New Project” from the File menu and go  
> from there…

Or, cd to your app dir in Terminal, and “mate .”

---

<div class="post-metadata">

**Author:** ![irock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ec8ea/32.png) [@irock](https://www.ruby-forum.com/u/irock)\
**Post date:** [July 28, 2007, 6:00am UTC](https://www.ruby-forum.com/t/ruby-on-rails-textmate/110605/5 "2007-07-28T06:00:37Z")

</div>

If you installed mySQL from the .dmg file, then your “default”  
username and password is ‘root’ with no password on localhost. No  
configuration needed usually.

If you compiled it, I’m not sure, but you could try connecting with  
the same credentials and see what happens… 🙂

–Jeremy

On 7/27/07, Shane K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> installed the fix for Mac OS X). I assume that I just tell it to connect
> 
> ## Cheers
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
[http://www.jeremymcanally.com/](http://www.jeremymcanally.com/)

My free Ruby e-book:  
[http://www.humblelittlerubybook.com/book/](http://www.humblelittlerubybook.com/book/)

My blogs:

> **[Site not found · DreamHost](http://www.mrneighborly.com/)**
>
> The owner of this domain has not yet uploaded their website.

[http://www.rubyinpractice.com/](http://www.rubyinpractice.com/)

---

<div class="post-metadata">

**Author:** ![irock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ec8ea/32.png) [@irock](https://www.ruby-forum.com/u/irock)\
**Post date:** [July 28, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-textmate/110605/6 "2007-07-28T18:06:30Z")

</div>

There’s about an hour long peepcode screencast about using Textmate  
with RoR that covers justa bout anything you could possibly imagine.  
You might check it out. Made me want to buy a mac… 😛

On Jul 27, 4:53 pm, Shane K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![irock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ec8ea/32.png) [@irock](https://www.ruby-forum.com/u/irock)\
**Post date:** [July 28, 2007, 6:05am UTC](https://www.ruby-forum.com/t/ruby-on-rails-textmate/110605/7 "2007-07-28T06:05:38Z")

</div>

While we’re on the subject of Rails and Textmate, does anyone have a  
bundle recipe to trigger a ‘rake test’ without having to pick ‘test’  
from the menu of allowed tasks? Really I’d like to be able to hit a  
single keyboard shortcut and have it happen.

Failing that I’ll eventually get around to writing my own, but why  
debug the newly reinvented wheel.

-faisal

---

<div class="post-metadata">

**Author:** ![irock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ec8ea/32.png) [@irock](https://www.ruby-forum.com/u/irock)\
**Post date:** [July 28, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-textmate/110605/8 "2007-07-28T19:28:40Z")

</div>

Faisal N Jawdat wrote:

> While we’re on the subject of Rails and Textmate, does anyone have a  
> bundle recipe to trigger a ‘rake test’ without having to pick ‘test’  
> from the menu of allowed tasks? Really I’d like to be able to hit a  
> single keyboard shortcut and have it happen.

We did this trick:

- declare a keystroke, F5, that does nothing
- set the keystroke to “save all files” first
- run trigger.rb in a shell next to the editor (on another monitor)
- trigger.rb detects when any file gets saved
- the trigger doesn’t run test:recent. It uses test:svn\_modified

[http://groups.google.com/group/rubyonrails-talk/msg/91d25ae319db21b2](http://groups.google.com/group/rubyonrails-talk/msg/91d25ae319db21b2)

> Failing that I’ll eventually get around to writing my own, but why  
> debug the newly reinvented wheel.

Ask, and ye shall be blogged!

[http://phlip.eblogs.com/2007/01/02/growl-driven-development/](http://phlip.eblogs.com/2007/01/02/growl-driven-development/)

–  
Phlip  
[http://www.oreilly.com/catalog/9780596510657/](http://www.oreilly.com/catalog/9780596510657/)  
“Test Driven Ajax (on Rails)”  
assert\_xpath, assert\_javascript, & assert\_ajax
