Is Grails worth it? [closed]

We had a team of 12 people all seasoned senior Java devs who learnt Grails from 0.6B and we are all still working on projects based on Grails. I wouldn’t go back to Java willingly, and we are all relieved to have broken the back of how to get somewhere quick with a Grails app. … Read more

How to log SQL statements in Grails

Setting datasource { … logSql = true } in DataSource.groovy (as per these instructions) was enough to get it working in my environment. It seems that parts of the FAQ are out of date (e.g. the many-to-many columns backwards question) so this might also be something that changed in the meantime.

How to pass parameters to a modal?

To pass the parameter you need to use resolve and inject the items in controller $scope.Edit = function (Id) { var modalInstance = $modal.open({ templateUrl: ‘/app/views/admin/addeditphone.html’, controller: ‘EditCtrl’, resolve: { editId: function () { return Id; } } }); } Now if you will use like this: app.controller(‘EditCtrl’, [‘$scope’, ‘$location’ , function ($scope, $location, editId) … Read more

How to change grails localhost port?

This solution adds to the answers http://stackoverflow.com/a/10956283/122457. In Grails 2.x, add the following to BuildConfig.groovy: grails.server.port.http = 8090 See http://forum.springsource.org/archive/index.php/t-97024.html for further details.

Clojure 1.2.1/1.3/1.4 ‘proxy generated in Grails 2.0.0 runtime fails. 1.2.0 is fine

I found an Issue called CLJ-944 on clojure.org. There you can find a fix for ClassCastException: clojure.lang.PersistentArrayMap cannot be cast to java.lang.Class issue The problem is: that the compiler injects an incorrect cast to clojure.lang.PersistentHashMap. In this case it should probably be cast to a clojure.lang.Associative, the highest common interface having the .containsKey method. Patch … Read more

What are “Groovy” and “Grails” and what kinds of applications are built using them?

What is Groovy on Grails? It doesn’t exist under this name anymore. It’s simply called Grails now. What is Groovy? Originally, a dynamic language for the JVM. However, since Groovy 2.0, both static and dynamic typing are supported. What is Grails? Grails (previously known as “Groovy on Grails”) is a programming framework based on Groovy … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)