JRuby on Rails with Nine Lives: Running a JRuby on Rails Application on Tomcat, Page 8
Figure 27: Deleting an existing guitar
Figure 28: Deletion of existing guitar successful
In this article, you used JRuby to create a simple CRUD-based Rails application to manage a list of guitars (similar to the one in my "Skip the CRUD" article) and you successfully ran it on the Java-based Tomcat application server. This demonstrated JRuby's improved support for Rails applications by using database access via JDBC and the ability to run Rails applications on a Java application server!
- Ubuntu Linux: http://www.ubuntu.com/
- Apache Tomcat: http://tomcat.apache.org/
- MySQL: http://www.mysql.com/
- Ruby: http://www.ruby-lang.org/en/
- Java: http://java.sun.com/
- JRuby: http://jruby.codehaus.org/
- Ruby on Rails: http://www.rubyonrails.org/
- Goldspike Rails Integration Plugin: http://www.headius.com/jrubywiki/index.php/Rails_Integration
- Rails Migrations: http://wiki.rubyonrails.org/rails/pages/UsingMigrations
- SilvaSoft, Inc. weblog: http://jroller.com/page/silvasoftinc
About the Author
Dominic Da Silva (http://www.dominicdasilva.com/) is the President of SilvaSoft, Inc., a software consulting company specializing in Java- and Ruby-based web and web services development. He has worked with Java since the year 2000 and is a Linux user from the 1.0 days. He is also Sun Certified for the Java 2 platform. Born on the beautiful Caribbean island of Trinidad and Tobago, he now makes his home in sunny Orlando, Florida.