[Rails] Re: How to relate model with self value?

2010-12-15 Thread Masuda
>Tim You're exactly right. Thanks -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googleg

[Rails] Re: How to relate model with self value?

2010-12-15 Thread Masuda
gt; true)" is not suitable for this case. The payment.testing value depends on user.testing value(same as user.testing value). Masuda -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send

[Rails] How to relate model with self value?

2010-12-15 Thread Masuda
Hi, I'm developing with ruby-1.9. 1 rails 3.0.0. I want to relate 'User' model and 'Payment' model with condition which has the same value as 'user.testing' in 'payment.testing' I did Class User < ActiveRecord::Base has_many payments, :conditions => ['testing = ?', self.testing] end This doe

[Rails] Re: MySQL sometime fail to record timestamps, become NULL.

2009-10-28 Thread Masuda
Hi Fred. >Have you been able to narrow down the problem to a small example ? No I haven't. I have no idea about this problem yet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post

[Rails] MySQL sometime fail to record timestamps, become NULL.

2009-10-27 Thread Masuda
My Rails apps using MySQL and sometime timestamps, created_at and updated_at, become NULL. Why it fails to record? Does anyone know about this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" g

[Rails] sessions are disabled with "config.cache_classes =true"

2009-09-22 Thread Masuda
Hi. I found that sessions are disabled and can't login with restful_authentication. Session and login works fine with "config.cache_classes = false" but it doesn't work with "config.cache_classes = true". It doesn't show any errors, but redirect to login page. It seems to be post nothing. Does

[Rails] Re: Import excel / csv files

2009-09-22 Thread Masuda
If you mean CSV to DB records, you should use fixtures. On terminal window. rake db:fixtures:load FIXTURES=table_name RAILS_ENV=development Change 'table_name' and RAILS_ENV=~ as you like. This will import CSV as DB records. --~--~-~--~~~---~--~~ You received thi

[Rails] Re: [Rails]Glove.class_name => 'Glofe'

2009-08-05 Thread Masuda
Thanks for your help. It works fine !! 2009/8/6 MaurĂ­cio Linhares : > > Ops, i meant Glove.name > > - > MaurĂ­cio Linhares > http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr > > > > On Wed, Aug 5, 2009 at 11:06 PM, Masuda wrote: &g

[Rails] Re: [Rails]Glove.class_name => 'Glofe'

2009-08-05 Thread Masuda
/mauriciojr > > > > On Wed, Aug 5, 2009 at 10:12 PM, Masuda wrote: >> >> I'm trying to class array to another array. >> However Glove.class_name become 'Glofe'. >> Somebody can tell me why? >> >> My environment is ruby 1.8.6 Rails 2.2.2

[Rails] Re: [Rails]Glove.class_name => 'Glofe'

2009-08-05 Thread Masuda
Hi Bill. Thanks for your reply. I guessed so too, but plural form of glove is 'gloves' isn't it? In addition, I found Mustache.class_name becomes 'Mustach' (lack of last 'e'). I think it's odd. 2009/8/6 bill walton : > > Hi Masuda, > > On

[Rails] [Rails]Glove.class_name => 'Glofe'

2009-08-05 Thread Masuda
I'm trying to class array to another array. However Glove.class_name become 'Glofe'. Somebody can tell me why? My environment is ruby 1.8.6 Rails 2.2.2 on Windows Vista. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[Rails] RMagick LoadError

2009-03-24 Thread Masuda
I installed RMagick 2.9.1 and tried to test RMagick code below. irb -rubygems -r RMagick But I got an error like below. /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.9.1/lib/RMagick2.so: libMagickCore.so.2: cannot open shared object file: No such file or directory - /usr/local/lib/ruby/gems/1.8/gem