Skip to main content

Posts

Showing posts with the label padrino

Ruby frameworks, Rails and Padrino

Some thoughts on the Padrino and Rails . For the past few weeks, I've been working on a small project that is using Padrino rather than Rails. The interesting thing was that the decision for the technology was based on the idea that the project was only going to have a few objects; at most five or six and as such, didn't need something as large, complex or weighty as Rails . However, something as barebones as Sinatra would not allow for some of the more rapid application development that you get from some of the baked in goodness of Rails - things like Sessions, Flash, Form helpers and generators all speed up development fairly considerably. With that in mind, Padrino was the framework of choice. Now Padrino is interesting. It's a great little framework, but, the temptation is to look at it's relative light-weightedness in comparison to Rails and think it will require less learning time or up-front knowledge for someone with little experience of the framework or of so...

Padrino, Datamapper, Rake, Uninitialized Constant

So, perhaps you've set up a fancy application using padrino , datamapper and sqlite and you are going great guns until padrino rake dm:migrate => Executing Rake dm:migrate ... rake aborted! uninitialized constant Text Or something similar - the datatype is probably not too important. The solution is to edit your migration and put the datatype into quotes....like this: column :description, "TEXT" There seems to be a bug with the use of datamapper and the migration. I'm not sure where the bug is, but this fixes it!