On Aug 11, 1:30=A0pm, I=F1aki Baz Castillo <i... / aliax.net> wrote:
> Hi, I plan to use ActiveRecord in a non RubyOnRails application (just pur=
e
> Ruby app). How easy is it? is just loading the library?
>
> --
> I=F1aki Baz Castillo

 easy. i use  activerecord in my db operations as i dont have to break
my head for sql operations. u just create a model class and requrie it
and use it just as u would do in rails.

require 'active_record'
ActiveRecord::Base.establish_connection(
:adapter =3D> "mysql",
:host =3D> "localhost",
:database =3D> "mydb",
:username =3D> "root"
)
class Tag < ActiveRecord::Base
    set_table_name "tags"
    has_and_belongs_to_many :trades

end