# Tips for active record without rails

**URL:** <https://www.ruby-forum.com/t/tips-for-active-record-without-rails/84658>\
**Category:** Ruby\
**Created:** [February 6, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/tips-for-active-record-without-rails/84658 "2007-02-06T20:05:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [February 6, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/tips-for-active-record-without-rails/84658/1 "2007-02-06T20:05:56Z")

</div>

Hello there all,  
i have used rails to build our company website, and i loved it.  
i have a lot of maintenace scripts to run through cron and i would  
really  
dig being able to do it with active record.

Does anyone know of some good helper docs out there or tutorials ( or  
even a  
book ) that would allow me to get the hang of using active record  
without  
rails ?  
or is there a better orm for mysql without being tied to a web server ?  
thanks

shawn

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [February 6, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/tips-for-active-record-without-rails/84658/2 "2007-02-06T20:35:02Z")

</div>

On Feb 6, 2007, at 1:05 PM, shawn bright wrote:

> rails ?  
> or is there a better orm for mysql without being tied to a web  
> server ?

I just created some simple documentation on this in the last week.  
You can find it at [http://www.ociweb.com/mark/ActiveRecord.html](http://www.ociweb.com/mark/ActiveRecord.html). This  
page also discusses using ActiveRecord from Java through JRuby.

I’m open to any feedback on this page!

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [February 6, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/tips-for-active-record-without-rails/84658/3 "2007-02-06T20:40:03Z")

</div>

On Feb 6, 2007, at 1:05 PM, shawn bright wrote:

> Does anyone know of some good helper docs out there or tutorials  
> ( or even a  
> book ) that would allow me to get the hang of using active record  
> without  
> rails ?

I’ve read this book:

[http://www.pragmaticprogrammer.com/titles/fr\_eir/index.html](http://www.pragmaticprogrammer.com/titles/fr_eir/index.html)

It covers the scenario you describe in fair detail.

James Edward G. II

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [February 7, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/tips-for-active-record-without-rails/84658/4 "2007-02-07T12:52:27Z")

</div>

On 2/6/07, Mark V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On Feb 6, 2007, at 1:05 PM, shawn bright wrote:

> > Hello there all,  
> > i have used rails to build our company website, and i loved it.  
> > i have a lot of maintenace scripts to run through cron and i would  
> > really  
> > dig being able to do it with active record.

ActiveRecord outside of Rails is stunningly easy, especially when  
you already have all of your Rails models written. I always end up  
writing tons of ruby scripts that populate my Rails database with  
loads of test or demo data.

> I just created some simple documentation on this in the last week.  
> You can find it at [http://www.ociweb.com/mark/ActiveRecord.html](http://www.ociweb.com/mark/ActiveRecord.html). This  
> page also discusses using ActiveRecord from Java through JRuby.

One of the most compelling reasons to use JRuby IMO; getting access  
to all of those databases through JDBC that you don’t have Ruby adapters  
for.

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [February 6, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/tips-for-active-record-without-rails/84658/5 "2007-02-06T21:26:08Z")

</div>

way cool, thanks for this, looks like a lot of what i am after.

shawn

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [February 7, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/tips-for-active-record-without-rails/84658/6 "2007-02-07T18:01:07Z")

</div>

great ! thanks for this, gives me something to chew on while i wait for  
a  
book from amazon.

appreciate it much, great starting point.

shawn
