Actavercord or Sinatra Activist for Sinatra

I am working on sinatra for the first time and am faced with the choice of using the activerecord or the sinatra-activerecord gem. Couldn't find the correct difference between the two. Can someone help me.

+3


source to share


1 answer


If you've just read the description, it's pretty clear which one you should be using:

ActiveRecord

Rails databases. Create a persistent domain model by mapping database tables to Ruby classes. Strong conventions for association, validation, aggregation, migration, and testing are tempting.

https://rubygems.org/gems/activerecord/



Sinatra-ActiveRecord

Extends Sinatra with ActiveRecord Helpers.

https://rubygems.org/gems/sinatra-activerecord

So, I think for 99.5% of all cases, just go with sinatra-activerecord

.

+2


source







All Articles