Skip to content

ffissore/ogm-rails-console-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

One console to rule the webapp

This is the ruby on rails version.

You can use to debug or change the state of your app.

To run it, set ruby up (see rvm.beginrescueend.com/), launch rake db:migrate then rails s

Then go to localhost:3000/console and start scripting.

During the demo, I’ve changed the database name. Try running these lines to discover how

ActiveRecord::Base.connection_config
ActiveRecord::Base.connection_pool.disconnect!

The console can even be accessed directly from bash, through curl

curl -X POST -d 'script=ActiveRecord::Base.connection_config' http://localhost:3000/console.text

To use rack-webconsole, switch to webconsole branch (git checkout webconsole), then at page localhost:3000/helloworlds press the ‘ char

About

The sample console (plain and rack-webconsole) shown at OpenGeekMeeting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published