Although Rails is intended for creating database-backed web applications, this example is simple enough that it does not require one. In this case, you can edit the enviroment.rb configuration file to indicate that your application does not use a database.
Open hello/config/environment.rb file in a text editor.
Look for the following commented property in the file:
#config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
Uncomment the property by removing the pound (#) character from the beginning of the line.
The line should now read as follows:
config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
Exit and save the file.
Proceed to Deploying and Running a Rails Application for instructions on deploying the application to GlassFish Server.