Displaying 4 results from an estimated 4 matches for "source_reflection".
2012 Nov 19
0
has_one :through NoMethodError: undefined method `klass' for nil:NilClass when doing class_name on reflection
....2.9) console if I do:
MyModel.reflections.each {|name,reflection| reflection.class_name }
it raises:
NoMethodError: undefined method `klass'' for nil:NilClass
from
/path/to/rvm/gems/ruby-1.9.3-p194@my_project/gems/activerecord-3.2.9/lib/active_record/reflection.rb:385:in
`block in source_reflection''
from
/path/to/rvm/gems/ruby-1.9.3-p194@my_project/gems/activerecord-3.2.9/lib/active_record/reflection.rb:385:in
`collect''
from
/path/to/rvm/gems/ruby-1.9.3-p194@my_project/gems/activerecord-3.2.9/lib/active_record/reflection.rb:385:in
`source_reflection''...
2008 Aug 01
0
Help with Access Control
...b/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
reflection.rb:106:in `class_name''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
reflection.rb:129:in `klass''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
reflection.rb:189:in `source_reflection''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
reflection.rb:189:in `collect''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
reflection.rb:189:in `source_reflection''
...
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/...
2010 Sep 29
2
Railroad problem with :through?
...9;' > doc/models.png
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/whiny_nil.rb:52:in
`method_missing'': undefined method `klass'' for nil:NilClass
(NoMethodError)
from
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/reflection.rb:320:in
`source_reflection''
from
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/reflection.rb:320:in
`collect''
from
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/reflection.rb:320:in
`source_reflection''
from
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/act...
2010 Apr 19
1
Problem with mongrel_rails, but works with script/server
On Mon, Apr 19, 2010 at 9:21 AM, <rpavesic at gmail.com> wrote:
> Hi there, I am having problem with mongrel_rails and
> I do not know whom to ask so I found your e-mail as
> one of the last people contributing to mongrel_rails, so
> may be you would be able to help me out.
>
Please, email mongrel-users mailing list for problems, so in that way
all benefit from the answers.