Technology Programming

The Main Screen

The Main Screen

NetBeans, like many IDEs, is separated into three panes. The left pane holds a project or file explorer. In the screenshot the left pane is empty because there's no project generated yet. The right pane is split between the content pane (showing a welcome page) and an info pane. The info pane will show things like the output from generators, scripts, etc. Anything you'd normally see on a console window will show up in the info pane.

Generating a New Project

To generate a new project, go to File -> New Project. You'll be presented with a number of project types; choose Ruby on Rails Application. There are a number of options you must select here.

For the database type, configure as shown if you're using MySQL. There are a number of ways to do the database connection, but this is the most direct. Be sure to put in your correct password.

Also, you might want to change the server to Webrick.

It's familiar to most Rails coders, even though, for the most part, Mongrel has replaced it.

Everything in its Right Place

Most of the Rails commands are hidden away in the project's right-click menu. Right-click on the project name in the left pane. From this menu, you can do a number of things, including running migrations, installing plugins and running generator.

Create the Database

Before you get started installing any plugins or running any generators, you should first create your development database. To do this, select the Run/Debug Rake Task from the right-click menu. This will present you with a dialog listing all rake tasks available on your project. Either search through these manually or use the filter field in the dialog to narrow the choices down. In this screenshot, I'm going to run the db:create rake task.

Install Plugins

Select the Rails Plugins... option from the right click menu to get this handy plugins dialog. Make sure to stop by on the Repositories tag and enter any repositories you'll need. Select the plugin you need to install and hit the Install button. (It really couldn't be any simpler.)

From the right click menu, select Generate to access the generate dialog. This dialog will allow you to select a generator, input parameters in the one or more text fields at the top and run the generator. Also, in the bottom pane you'll be able to read the help screen for the generator.

Once you have a migration ready to run, you can run it from the Migrate Database sub-menu of the right click menu. All database migrations will be listed here, as well as To Current Version and To Version 0. To migrate to the latest version of the database, select To Current Version. Selecting any of the specific versions from the lower portion of the menu will migrate the database forward or backward to that version.

SHARE
RELATED POSTS on "Technology"
WordPress - How to Set up a New Theme to WordPress 3.
WordPress - How to Set up a New Theme to WordPress 3.
Solution of Creative Web Design
Solution of Creative Web Design
The three disciplines of User Experience
The three disciplines of User Experience
Web Design Sheffield Options For Professional Enterprises
Web Design Sheffield Options For Professional Enterprises
Do you have what it takes?
Do you have what it takes?
Segway Cost
Segway Cost
Microsoft Access 2010: What's Coming with Office 2010?
Microsoft Access 2010: What's Coming with Office 2010?
Companies of Web Development in Ireland Provide Designs that Work
Companies of Web Development in Ireland Provide Designs that Work
Penguin Update to Put Red-Flags on Negative SEO
Penguin Update to Put Red-Flags on Negative SEO
Innovative web 2 design templates can make your business famous quickly
Innovative web 2 design templates can make your business famous quickly
Building A Search Engine Friendly Website
Building A Search Engine Friendly Website
Exceptional Advice To Build Up Your Internet Marketing
Exceptional Advice To Build Up Your Internet Marketing
The Benefits of Selecting The Right Hosting Company
The Benefits of Selecting The Right Hosting Company
Is There a Methodology for Making Successful Logos
Is There a Methodology for Making Successful Logos
Benefits of Ruby On Rails Development
Benefits of Ruby On Rails Development
The Power of Colour and Shapes in Your Infant's Life.
The Power of Colour and Shapes in Your Infant's Life.
Advantages of Hiring PSD To HTML Service Providers
Advantages of Hiring PSD To HTML Service Providers
How to Make Responsive Web Design Attractive?
How to Make Responsive Web Design Attractive?
Converting PSD to Responsive HTML
Converting PSD to Responsive HTML
Just a few realy really hints and tips when it comes to website design but look for.
Just a few realy really hints and tips when it comes to website design but look for.

Leave Your Reply

*