[Rails] ActiveSupport DateTime.to_time (yesterday vs now)

2009-04-30 Thread Rob Redmon
What's so strikingly different between "yesterday" and "now"? irb(main):010:0> require 'activesupport' => [] irb(main):014:0> DateTime.yesterday.to_time.class => Time irb(main):015:0> DateTime.now.to_time.class => DateTime -- Posted via http://www.ruby-forum.com/. --~--~-~--~~--

[Rails] Re: Oracle oci8 => OCIError: OCI Library Initialization Error

2009-04-23 Thread Rob Redmon
bump for ideas :) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsu

[Rails] Re: gem install mysql "checking for mysql_query() in -lmysqlclie

2009-04-15 Thread Rob Redmon
Rob Redmon wrote: > Roger Pack wrote: >>> /home/iono/packages/gems/gems/mysql-2.7 for inspection. >> >> Might give some clues. > > > Duh. > > This is what worked: > cd /home/iono/packages/gems/gems/mysql-2.7 > ruby extconf.rb --with-mysql-conf

[Rails] Re: gem install mysql "checking for mysql_query() in -lmysqlclie

2009-04-15 Thread Rob Redmon
Roger Pack wrote: >> /home/iono/packages/gems/gems/mysql-2.7 for inspection. > > Might give some clues. Duh. This is what worked: cd /home/iono/packages/gems/gems/mysql-2.7 ruby extconf.rb --with-mysql-config=/usr/bin/mysql_config Thanks for such speedy help!! R -- Posted via http://www.rub

[Rails] gem install mysql "checking for mysql_query() in -lmysqlclie

2009-04-15 Thread Rob Redmon
I've seen this before but I've forgotten how to solve it. It appears that I have the mysql client libraries installed: i...@retro[08:25:55][~/] locate libmysqlclient.so /usr/lib/mysql3/mysql/libmysqlclient.so /usr/lib/mysql3/mysql/libmysqlclient.so.10 /usr/lib/mysql3/mysql/libmysqlclient.so

[Rails] Oracle oci8 => OCIError: OCI Library Initialization Error

2009-04-14 Thread Rob Redmon
I'm trying to get ActiveRecord working with an Oracle DB over the instant client. On a 32bit machine, I can require 'oci8': Linux xxx.xxx.xxx.xxx 2.6.9-78.0.17.ELsmp #1 SMP Thu Mar 5 04:52:17 EST 2009 i686 i686 i386 GNU/Linux irb(main):001:0> require 'oci8' => true However, on a 64bit machine: L

[Rails] Re: Rails or separate packages, RedHat

2009-04-11 Thread Rob Redmon
Solved. I just built up my own Ruby and RubyGems environment and all is well. Thanks for the tips. R -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk

[Rails] migration oracle auto_increment

2009-04-10 Thread Rob Redmon
I have a schema for ~15 tables in MySQL. I need to migrate it to Oracle though I've never used Oracle before. I see that Oracle doesn't have an auto_increment built in. One must create a trigger table for each auto_incrementing id. I'm contemplating translating my MySQL schema into a Ruby mig