What are the scenarios in which Sinatra or Merb could be used?

I study Rails and have very little information about Sinatra and Merba. I was wondering where you will use Merb / Sinatra.

Thanks for the feedback!

+5
source share
3 answers

Sinatra is a much smaller, lighter construction than Rails. It is used if you want to quickly launch something that simply sends multiple URLs and returns some simple content. Take a look at the Sinatra homepage ; that’s all you need to start and run “Hello, World”, while in Rails you need to create an entire project structure, configure the controller and presentation, configure routing, etc. (I haven’t written a Rails application for some time, so I don’t know exactly how many “Hello, World” steps are, but this is certainly more than Sinatra). Sinatra also has far fewer dependencies than Rails, which makes it easier to install and run.

Sinatra - - , . , , , , Rails.

Merb Rails, . , , Rails; Rails , ActiveRecord. , Rails , , Rails, , , .

+7

Merb, Sinatra . -, Sinatra , , Rails ( ).

Sinatra , front-end . - ErrCount, .

, - ( - ) Sinatra.

+2

, .

, Merb 2.0 Rails 3.0 . Merb and Rails . , (, -) RailsConf , .

, ORM, ActiveRecord, , Merb , 2.0 (Rails 3.0). Merb , , Rails.

Sinatra -, , Merb/Rails. API RESTful . , HTML, , .

Again, when Rails (and therefore Merb soon) is now sitting on top of the rack, there is no reason not to include the Sinatra child apps in the solution: they can live together. There is a blog post discussing this concept.

+1
source

All Articles