RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Super simple CRUD for Sinatra

Sinatra’s Hat is a project that allows you to mount one of your models (DataMapper, ActiveRecord, or otherwise) as a RESTful service in one line. So if you have a Post model, you can expose it RESTfully like so: mount Post. There are also options for adding additional format parsers, response formatters, basic auth and more.

Comments

I should add that it’s totally built on Sinatra, in case the name wasn’t apparent enough.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in