This is an example app that uses the following gems to upload images for your Rails application and get the text extracted:
This app also uses twitter-bootstrap-rails but is not required.
This app uses Rails 3.2.13.
This app requires ruby-tesseract-ocr gem which does have some pre-requisites. As mentioned in the gem spec to make this library work you need tesseract-ocr and leptonica libraries and headers and a C++ compiler.
Follow the instructions as mentioned in UbuntuForum
rake db:create
rake db:migrate
rails server
Open http:://localhost:3000
The Unlicense (i.e Public Domain)