An inherited resource only makes your DRY code, nothing more. All the magic does Ruby on Rails. If you ask how to do REST with JAVA like Rails, than check this out.
1) you can use JRuby and RoR together. 2) you can look at Groovy on Grails
Fivell
source share