Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Example Ruby on Rails app showing how to use DataMapper to access a legacy database
Ruby JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README.markdown
Rakefile
config.ru

README.markdown

Example LegacyBlog application

This is an example Ruby on Rails application which shows how to use DataMapper to connect to a database with a legacy schema.

How to run it

Clone the application and cd into app's directory:

git clone git://github.com/codebenders/legacy-blog-app.git cd legacy-blog-app bundle install

Import schema:

mysql < db/schema.sql

Run the server:

script/rails s

There are scaffolds generated for User and Post model available at http://localhost:3000/users and http://localhost:3000/posts

Something went wrong with that request. Please try again.