Testing ActiveRecord in console

J

JZ

How to import and test ActiveRecord using Interactive Ruby Shell? It is not
clear how it shoud be used and I do not know how even to start, eg. how
import module, bind to database etc. (I am used to pythonic interpreter
console.) Is it possible to use Active Record outside of Rails?
 
T

threeve.org

How to import and test ActiveRecord using Interactive Ruby Shell? It is not
clear how it shoud be used and I do not know how even to start, eg. how
import module, bind to database etc. (I am used to pythonic interpreter
console.) Is it possible to use Active Record outside of Rails?

look at script/console from your rails dir.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top