/dwt-ruby-on-rails

Dynamic Web TWAIN with Ruby on Rails

Primary LanguageRuby

Dynamic Web TWAIN Sample: Ruby on Rails

The sample demonstrates how to integrate Dynamic Web TWAIN into Ruby on Rails project.

Installation

  • Dynamic Web TWAIN 17.0

  • Ruby 2.5.1

    sudo apt install ruby-full
  • Sqlite3 3.22.0

    sudo apt install sqlite
  • Rails 6.1.3.2

    gem install rails

Deployment

  1. Copy Resources folder from <Dynamic Web TWAIN installation directory> to public folder.

  2. Get a valid license and set the license in app/views/twainscanning/home.html.erb:

    Dynamsoft.DWT.ProductKey = "";
  3. Run the project:

    bundle install
    bin/rails server
  4. Open http://localhost:3000 in your web browser.

Dynamic Web TWAIN with Ruby on Rails

Blog

How to Load, Scan and Upload Files with Ruby on Rails