News for hackers. Stuff that matters.
Re:Why critics of Rails have it all wrong (and Ruby's bright... by jeltz on Thursday September 13, 2012 @11:45AM (#4516747)
Agreed, when you want to build an API use Sinatra, and when you want to do web MVC there is Padrino which turns Sinatra into a very competent MVC framework.
Re:Why critics of Rails have it all wrong (and Ruby's bright... by damncabbage on Thursday September 13, 2012 @12:37PM (#4517105)
I've used Padrino for a couple of projects now, but unfortunately it slips into "Uncanny Valley Rails" territory (particularly when it comes to the rake tasks you expect to have but turn out to be missing, eg. db:test:prepare).
Re:Why critics of Rails have it all wrong (and Ruby's bright... by planetmcd on Thursday September 13, 2012 @12:11PM (#4516946)
I really enjoy Sinatra and am indeed using it for REST style API hosting, but the counter argument might be all the security stuff that is built into the Rails routes/controllers. this might be a great case for a stripped down rails app as opposed to a Sinatra app.
Re:Why critics of Rails have it all wrong (and Ruby's bright... by jeltz on Thursday September 13, 2012 @12:35PM (#4517096)
I thought most of the security in Rails is provided by the rack-security middleware? Or am I forgetting something which Rails provides here?
Re:Why critics of Rails have it all wrong (and Ruby's bright... by dcu on Thursday September 13, 2012 @05:50PM (#4518831)
Escaping everything by default to avoid XSS attacks. that's a nice feature to have.
Re:Why critics of Rails have it all wrong (and Ruby's bright... by auxbuss on Thursday September 13, 2012 @06:36PM (#4519016)