[Locomotive-users] Using Locomotive with Apple's Rails tutorial

Lori M Olson loriolson at mac.com
Fri Jul 14 15:48:39 GMT 2006


On 14-Jul-06, at 9:29 AM, David Matuszek wrote:

> I'd like to step through Apple's Rails tutorial
> (http://developer.apple.com/tools/rubyonrails.html)
> using Locomotive. That tutorial says:
>
>   "If you already have MySQL, you can get everything else by
>    using Locomotive, a drag-install of all the relevant pieces."
>
> (I have MySQL.) A little later the tutorial says to execute
> the line
>   $ rails expenses
> which (of course) gives me the response
>   rails: command not found
>
> I'm sure I can do this by installing rails separately, and
> making a symbolic link to it. What I cannot seem to do,
> however, is _find_ rails within the Locomotive bundle.
> I know it must be there somewhere!
>
> Advice, please?
>

If you are using Locomotive, then you need to let Locomotive do some  
of this work for you.  In this case, instead of working from the  
command-line, let Locomotive create your rails app structure for  
you.  Start Locomotive, and then from the menus, choose Applications  
| Create New.  Name it "expenses", select the directory in which you  
want your new application to be created, and select the Rails bundle  
you want. All done.

After that, Open a Terminal by Ctrl-Clicking on your application in  
Locomotive, and the Rails environment will be automatically  
configured for that Terminal, so you can do any other command-line  
things from there.  Files you need to look in to customize this  
environment include the <application>/config/locomotive.yml file, and  
the environment.plist file inside your chosen Rails bundle.

As Ryan has told me a couple of times, the documentation is a little  
thin... But everything actually DOES work, so we'll have to forgive  
him.  ;-)

Regards, Lori



More information about the Locomotive-users mailing list