Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I definitely love Sinatra, and I'm impressed by the admin interface, but it looks like there's no support for DataMapper as an ORM.

I also wonder if this is just turning Sinatra into Rails. I think for the now I prefer to just build a Sinatra app and add gems and plugins as I need them.



Same here. I really like Sinatra's gem ecosystem, and with unobtrusive Javascript I don't have much framework-dependent code on the views, nor helpers like his link_to confirm example, in the presentation...

I admit that sometimes I miss generators, but Sinatra's boilerplate code is so minimal that I just don't care much anymore.


Once before starting a biggish app I sat down and wrote my own generators to create controllers with crud actions and views for them.


Padrino supports the following ORMs out of the box: mongoid, activerecord, datamapper, couchrest, mongomatic, ohm, ripple, sequel. Take a look here: http://www.padrinorb.com/guides/generators

Padrino is just a Sinatra app with a very basic skeleton and some added functionality. Almost all the pieces are modular and doesn't have many requirements from the start.


On small addition: Padrino is also a Layer that stitches multiple Padrino Apps together, which is the true shiny feature.


Thanks for that. I mistakenly thought it only supported the two listed in the presentation.


The thing I like the most about it is the part where they demonstrate selectively including certain elements into Sinatra. I like Sinatra exactly because it doesn't come with the kitchen-sink - like you I prefer to just add gems and plugins as I need them (and I rarely find I do), but if I do I might look at Padrino.

(As for the admin interface, their site claims it has DataMapper support)


I remember using Datamapper with Sinatra to develop a pretty basic system for some weird user registration needs of a company offering medical assistance in the way of air ambulances in 2010. I don't really know if it's still supported since I've been doing .Net stuff since then... but I can definitely tell you it WAS supported two years ago, and I seriously doubt that they don't now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: