fixed views generators error

The migrations and controllers could not be generated because of a
syntax error.
Merge pull request #298 from quentinderunes/master

fixed views generators error #282