Introduction
At this point, you should have:
If not, please go back and follow the steps in order!
Details
- In GettingStarted you set up your sandbox. Now we are going to turn this into a Rad Rails project.
- In Rad Rails, File/New.../Project.../Rails Project
- For Project Name choose otwdb
- UNCHECK use default location and instead, browse to your sandbox directory and make that the location.
- UNCHECK Generate Rails Application Skeleton
- UNCHECK Create WEBrick Server
- Click Finish. The entire project will now open in Aptana.
- Now, we want to load up some dummy data into our databases. In the bottom panel, click on the Rake Tasks tab. Choose db:fixtures:load from the pull-down menu and let it run.
- Next, set up a server (if you didn't already in the Rails Project step). Right-click on the otwdb folder. Go to New.../Rails Server. For port, choose 3000. Leave it as WEBrick. Click Finish.
- The server will now be visible in the bottom panel on the servers tab. Right-click on it and start it. If all goes well, it will start up. If not, triple-check you've followed all the steps (is the MySQL server running in the background? did you create the databases and install the plugins?)
- Once the server is running, open up a Firefox window (don't use the built-in browser) and go to: http://localhost:3000/ and you should now see the otwdb application! Some sample user accounts will be available if you loaded up the dummy data.
- Any changes you make in your local code will immediately take effect. Try breaking something and see. :D
When You're Done
Pat yourself on the back about a million times. You are now ready to make contributions to the project!
Again, not sure if this is specific to OS X Leopard, but:
- "Create a Mongrel server" is also checked by default for me, I'm thinking this should be unchecked as well?
- At first clicking on the Rake Tasks tab was giving me "Cannot find gem for Rails =2.0.2.0" errors in the Console tab. After some poking around, I found that my default Ruby interpreter (Windows >> Preferences >> Ruby >> Installed Interpreters) was set to "/System/Library/Frameworks/Ruby.framework/Versions/Current/usr". I changed this to "/usr/local" and that seems to have done the trick.
- testingServer from the last GettingStarted? section is taking up port 3000, so I went with 3001. I don't think this matters much, since this server is just for testing purposes on our own machines, right?