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

No members online now.

Forum statistics

Threads
474,338
Messages
2,571,783
Members
48,588
Latest member
Janis0747

Latest Threads

Top