<p>Grails vs Rails. Which has better support? And which one is a better choice to develop medium size apps with? Most importantly which one has more plug-ins?</p>

[{'answer_id': 81845, 'author': 'Hank Gay', 'author_id': 4203, 'author_profile': 'https://Stackoverflow.com/users/4203', 'pm_score': 1, 'selected': False, 'text': "<p>Rails is more mainstream, but less flexible. Grails is still changing rapidly, doesn't have the same developer ecosystem, and the documentation isn't nearly as mature, but it will work in some situations Rails won't.</p>\n"}, {'answer_id': 81860, 'author': 'Scott Anderson', 'author_id': 15559, 'author_profile': 'https://Stackoverflow.com/users/15559', 'pm_score': 4, 'selected': False, 'text': '<p>I guess if you are a Java developer and want to have access to all the existing enterprise Java libraries and functionality... go with Grails. </p>\n'}, {'answer_id': 82055, 'author': 'tomafro', 'author_id': 7126, 'author_profile': 'https://Stackoverflow.com/users/7126', 'pm_score': 3, 'selected': False, 'text': "<p>Rails is more mature, has more plugins, has a bigger userbase, has better documentation and support available.  It can also run on JRuby giving access to Java libraries if you require.</p>\n\n<p>Grails has some interesting qualities, but can't claim to be up there with rails just yet.  However, if you're predominantly a Java or groovy developer you may prefer it.  Otherwise though, I'd suggest using Rails for medium sized projects right now.</p>\n"}, {'answer_id': 82634, 'author': 'Ed.T', 'author_id': 3014, 'author_profile': 'https://Stackoverflow.com/users/3014', 'pm_score': 3, 'selected': False, 'text': "<p>It depends on your skills with Ruby and/or Groovy, whether you have legacy Java systems to deal with, and where you want to deploy your applications. </p>\n\n<p>I was initially thrilled with Rails. At the time, there wasn't an option of deploying on the application servers at work since work is all Java. This has changed. I couldn't abandon the Java infrastructure and applications already in place and switch to Ruby, even though I thought Rails was awesome. Grails works because we can mix and match Groovy with the existing Java solutions.</p>\n\n<p>Outside of work, Ruby is easier to find hosting for at the low end of the price spectrum. Because Grails uses a lot of existing Java projects the .war files, even for a small app, tend to be large. If you have a dedicated server this isn't a problem but trying to run on shared hosting with 128 MB RAM doesn't work.</p>\n\n<p>2008 is the year of Groovy and Grails books but there are still many more Rails resources available.</p>\n\n<p>Based on your specific criteria, Rails may be a better framework to learn. If you have any Java knowledge, or baggage ;-), you should look at Grails.</p>\n"}, {'answer_id': 82658, 'author': 'Marcin Gil', 'author_id': 5731, 'author_profile': 'https://Stackoverflow.com/users/5731', 'pm_score': 2, 'selected': False, 'text': '<p>May I suggest <a href="http://merbivore.com" rel="nofollow noreferrer">Merb</a>? It is rack-based, modular, ORM-agnostic, built for speed from ground up by Ezra Zygmuntowicz. It is starting to gain some heat now...</p>\n'}, {'answer_id': 90671, 'author': 'Chii', 'author_id': 17335, 'author_profile': 'https://Stackoverflow.com/users/17335', 'pm_score': 3, 'selected': False, 'text': "<p>I say grails since there are so many java libraries out there. But I am a bit biased due to the fact that I come from a java background. </p>\n\n<p>If the app isn't going to be big, either suffices - and the choice ought to depend on existing infrastructure. Say if you already have a java servlet container server running, you might as well stick with grails instead of provisioning another server for rails.</p>\n"}, {'answer_id': 92683, 'author': 'Rollo Tomazzi', 'author_id': 11477, 'author_profile': 'https://Stackoverflow.com/users/11477', 'pm_score': 6, 'selected': True, 'text': '<p>One other thing worth mentioning: the design philosophy of both framework is somewhat different when it comes to the model. Grails is more "domain-oriented" while Rails is more "database-oriented".<br>\nIn Rails, you essentially start by defining your tables (with field names and their specifics). Then ActiveRecord will map them to Ruby classes or models.<br>\nIn Grails, it\'s the reverse: you start by defining your models (Groovy classes) and when you hit run, GORM (Grails ActiveRecord equivalent) will create the related database and tables (or update them). Which may also be why you don\'t have the concept of \'migrations\' in Grails (although I think it will come in some future release).<br>\nI don\'t know if one is better than the other. I guess it depends on your context.</p>\n\n<p>This being said, I\'m still myself wondering which one to choose. As Tom was saying, if you\'re dependent on Java you can still go for JRuby - so Java reuse shouldn\'t be your sole criterion.</p>\n'}, {'answer_id': 96531, 'author': 'Peter Kahn', 'author_id': 9950, 'author_profile': 'https://Stackoverflow.com/users/9950', 'pm_score': 0, 'selected': False, 'text': "<p>I have used turbogears and rails a little bit.  Before using rails, I tried using grails because I was using groovy for my scripting.  Grails was a difficult experience.  </p>\n\n<p>The groovy call stack is difficult to read for a small program, but when you add in several heavy weight frameworks a simple error can yield 100s of lines.  Unlike rails the grails version that I was using didn't have tools to help me determine what was mine and what belonged to the framework.</p>\n\n<p>I eventually switched to using the Google Web toolkit since I really didn't need the database.</p>\n\n<p>I think Grails and Groovy hold promise, but the user experience of working with them is cumbersome at present (present being last spring).</p>\n"}, {'answer_id': 288570, 'author': 'hendrixski', 'author_id': 24920, 'author_profile': 'https://Stackoverflow.com/users/24920', 'pm_score': 2, 'selected': False, 'text': "<p>Seeing as how the guys who make Grails just got bought out by Spring source yesterday, I would say Grails.</p>\n\n<p>Also, since Groovy is a superset of Java, you can dive right in just using the Java you know without having to learn Ruby.  Now, you'll learn a lot of dynamic stuff too and eventually write Groovy code instead of Java code, but it lowers the barrier to entry.</p>\n\n<p>Grails all the way!</p>\n"}, {'answer_id': 391304, 'author': 'Karsten Silz', 'author_id': 3574, 'author_profile': 'https://Stackoverflow.com/users/3574', 'pm_score': 2, 'selected': False, 'text': "<p>I would go with Grails since I like its approach (specify your domain classes and have Grails generate everything else) better than the Rails one (build database tables and have Rails generate everything else).  If you're a Java developer, you'll also like that Java code is valid Groovy code, and a Groovy class is a Java class so the integration is seamless both ways.</p>\n"}, {'answer_id': 1194141, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': "<p>As a Grails developer coming from Java, I loved it from the very first time. </p>\n\n<p>Now, I'm starting to dig into Rails and having problems with gem. While MySQL connection setup with Grails was pretty straightforward, I'm still struggling to make it work with Rails. </p>\n\n<p>The command <code>gem install mysql</code> is not working, apparently because I don't have XCode intalled.</p>\n\n<p>If it weren't for its memory consumption issue, I'd say Grails is perfect.</p>\n"}, {'answer_id': 4449542, 'author': 'oceanician', 'author_id': 494690, 'author_profile': 'https://Stackoverflow.com/users/494690', 'pm_score': 0, 'selected': False, 'text': "<p>I think it depends on the environment you're working in to some extent.</p>\n\n<p>Grails seems to have more corporate level acceptance.</p>\n\n<p>Rails has the Koolaid-vibe, and is very acceptable for start-ups with no legacy systems.</p>\n\n<p>Personally I'm using both. Though only really just starting out in the Grails world - I like that authentication/authorisation is easier in Grails-one simple plugin; Shiro. I like that Rails isn't dependant on JVM, and doesn't take a minute or so to startup.</p>\n\n<p>I find setting up BDD/Cucumber within Rails was far easier, but that could just be because that's what I'm comfortable with! There's definitely efforts in the Grails world (cuke4duke etc) to make this easier-and an active community developing Grails.</p>\n\n<p>Just my 2p·</p>\n\n<p>Try both :)</p>\n"}, {'answer_id': 8720224, 'author': 'ibaralf', 'author_id': 609043, 'author_profile': 'https://Stackoverflow.com/users/609043', 'pm_score': 3, 'selected': False, 'text': '<p>I used rails before and liked it quite a bit. However, my current company had a lot of legacy java code and therefore the natural choice was grails. </p>\n\n<p>When I started with rails, very few sites were using it and documentation was atrocious. There was railscast that was great and railsforum.com, but anything out of the ordinary, you\'re on your own. Deploying it was a nightmare, and using mongrel-clusters was not really production ready. This is very different now as everybody can see, much more mature and deployed everywhere.</p>\n\n<p>Over a year back, I had to learn grails due to reason I cited above. Transitioning to grails was very easy, since it is very similar to Rails. Again, it was very similar to the early stages of rails, with one huge difference. Because you can easily import java code, grails users can use almost all the production tested java libraries available out there. I\'ve been able to successfully integrate our legacy java projects into grails projects and very little tweaking are needed. You will also notice that plugin development has been rapid, mainly because developers are just writing grails "hooks" but the underlying code are the old java libraries. Deploying grails is also just deploying a WAR file.</p>\n\n<p>Another thing you have to look at is IDE. If you\'re comfortable with eclipse, then eclipse-STS for grails gives you all the bells and whistles. I still see a lot of rails developers use textmate, though rubymine has made great strides (the early version of rubymine used to grind my ubuntu to a halt).</p>\n\n<p>The bottom line, both are great MVC frameworks. RoR is much more mature and has a lot more developers. Grails is where RoR was 3-4 years ago, but I see the progress a lot more faster. Hope this helps.</p>\n'}]
['https://Stackoverflow.com/questions/81830', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/15476/']