Section 2.1. OS X


2.1. OS X

The easiest way to get started on OS X is to use Locomotive (Figure A-3), which is very similar to Instant Rails on Windows, except that it uses the Lighttpd for the web server (instead of Apache) and SQLite for the database (instead of MySQL). For more details about Locomotive, go to its home page at http://locomotive.raaum.org.

Figure A-3. RadRails

  1. Download Locomotive from http:// sourceforge .net/project/showfiles.php?group_id=146941 (you can also download the "Bundle" version that contains extra libraries, like Rmagick).

  2. Simply drag and drop the file you just downloaded to your Applications folder.

  3. This book uses MySQL for the development database, so we recommend that you install and use MySQL instead of the SQLite included in Locomotive. Download the latest MySQL packages from http://dev.mysql.com/downloads/ and run the installer.

  4. To start Locomotive, double-click Locomotive.app .

That's all there is to it!

2.1.1. TextMate and RadRails

The commercial text-editor-on-steroids TextMate (Figure A-4) is very popular with Rails developers on OS X. Locomotive provides some minimal built-in support for TextMate. You can right-click a Rails app in Locomotive and choose to open its directory in TextMate.

Figure A-4. TextMate

TextMate is inexpensive, but not free. You can find out more about TextMate here: http://macromates.com.

If you want more than a pumped-up text editor, you'll be happy to know that the excellent RadRails IDE also runs on OS X. See the section "RadRails," earlier in this chapter.

Once installed, you can configure RadRails to work with your Locomotive installation by following the same steps shown in the Windows section of this appendix.



Ruby on Rails[c] Up and Running
Ruby on Rails[c] Up and Running
ISBN: B003D3OGCY
EAN: N/A
Year: 2006
Pages: 94

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net