Following steps are very similar to instructions at netbeans docs so You can open it in separate window to have an overview of the GUI side.

Open netbeans from the console (in most distros netbeans will be in Yours applications menu and may be available on desktop):

/path_to_netbeans-6.5/bin/netbeans

Right click the empty area within Projects tab and choose “New Project”, there choose “Ruby” -> “Ruby on Rails Application” and click “Next >”. On the next screen You cna change nam of the application, You do not have to change all the params there, just click “Next >”. Following screen is “Database Configuration”, here You have to change the “Database Adapter” to “postgresql” enter Yours user name in the field “User Name” and press “Finish”.

That is Yours first application, now we will use famous functionality of rails – scaffold, right click the new project and select “Generate…”. From the “Generator:” list select scaffold, enter “Person” in “Model Name:”, enter “name:string” in “Attribute Pairs (field:type):” and press “OK”.

Worth explanation is feature of rails called pluralization, You can see in Models, that there is person.rb model, but in Controllers You have people_controller.rb controller, this is because rails calls “person”.pluralize before applying the name for controller or view. You can check this by navigating to the project “cd ~/NetBeansProjects/RailsApplication1” and entering “script/console”, here You can play with rails and Yours application.

Now after we have automaticly generated code of application we can continue with creating database for the application. Right click Your application, choose “Run/Debug Rake Task”, now choose “db:create” from the list and click the “Run” button. Ther will be no preaty message “Database created successfully”, but if You did not got any error message in few seconds it means everything went fine. Next step is to migrate database to current state – right click project, select “Migrate Database” -> “To Current Version”. In the output You should find somthing like this:

The database is prepared for our application, now we have to change few default settings to make person the most important in our application. Please open Configuration / routes.rb file by double clicking it. Start search by CTRL+F in the Find box enter “map.root”, uncomment the found line and change “welcome” to “people”. Last step is to rename the auto generated index.html file in the public folder, right click the file, chose rename and add suffix “_old” to the displayed index in the edit box.

Thats all, click the green triangle in the toolbox on the top of netbeans. This should open Your browser with the new app, You can check it by navigating through it.