Skip to content
This is a sample Ruby on Rail app showcasing a technique to provide a sandboxed demo environment for users testing your app.
Ruby HTML CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
tmp
vendor/assets
.gitignore
.ruby-version
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Breaking the Rules: Using SQLite to Demo Web Apps

This is a sample Ruby on Rail app showcasing a technique to provide a sandboxed demo environment allowing users to test your app written for a Smashing Magazine article. The article and app utilize SQLite to provide a demo environment for your Software as a Service (SaaS).

Branches

There are two branches: the master branch contains the finished code from the article. You can download it and test it right away. The without-demo-env branch does not have the code from the article and you can use this branch to try out the code for yourself.

Dependencies

This sample app is running on Ruby on Rails version 5.1.4 and Ruby version 2.4.1. However, the same technique should work with Rails version 3+, as well as older versions of Ruby.

Password

You do not necessarily need the admin user credentials for the included SQLite file, but just in case it is:

user: admin
pass: a-little-saas
You can’t perform that action at this time.