This is personal opinion but these days I'd probably swap Sinatra for Roda[1] for small API services.
It's generally faster, uses less memory and is a really good example of well written ruby code, IMHO. I also really like Jeremy Evans' book, Polished Ruby.
Look into Rack and Sinatra first, then Rails. Even if it's a short trip it's going to be worth it.