What is the difference between Ruby on Rails and Grails?
grails, ruby-on-rails
Solution
I have worked on both Groovy on Grails and Ruby on Rails.
- Both are agile platforms and follow the DRY or 'don't repeat yourself' principle and conventions over configuration.
- Both Grails is a framework of frameworks. You can write Java or Ruby syntax code in place of Groovy syntax code it will work perfectly.
- In Groovy we can use Java Spring and Hibernate frameworks too.
- Both support scaffolding.
- Rails has gems and plugins but in Grails, till now, I have used only plugins.
- Rails framework is built in Ruby language and Grails framework is built in Groovy language.
Both are wonderful frameworks.
You can find documentaion here:
- Grails
- Rails
Problem
Someone asked me to learn Grails and then they said Ruby on Rails. They almost used it interchangeably. What is the difference between the two?