Displaying 8 results from an estimated 8 matches for "write_inheritable_attribute".
2012 Jun 06
1
why to get the error 'undefined method `write_inheritable_attribute''
I started getting this error message when I attempt to do some rake
tasks:
$ rails destroy scaffold genotypes
/usr/share/rails-ruby1.8/railties/lib/rails_generator/options.rb:32:in
`default_options'': undefined method `write_inheritable_attribute'' for
Rails::Generator::Base:Class (NoMethodError)
from
/usr/share/rails-ruby1.8/railties/lib/rails_generator/base.rb:90:in
`<class:Base>''
from
/usr/share/rails-ruby1.8/railties/lib/rails_generator/base.rb:85:in
`<module:Generator>''
from
/usr/share/rails-...
2006 Apr 13
2
running rails on Linux
...1.1.2/bin/rails
which I presume is what is executed when I''m supposed to type:
% rails /path-to-my-app
But this rails file is not executable! Or when I type
% ruby rails /path-to-my-app
I get errors:
./../lib/rails_generator/options.rb:33:in `default_options'': undefined
method `write_inheritable_attribute'' for Rails::Generator::Base:Class
(NoMethodError)
from ./../lib/rails_generator/base.rb:51
from
/local/pkgs/ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require''
from ./../lib/rails_generator.rb:34
from rails:13
Maybe the...
2005 Jun 01
0
problem with rails rails-0.12.1 with Ruby 1.8 on OS X Panther
I have installed ruby, gem and rails.
I am trying to create a new project and I get some error messages.
undefined method `write_inheritable_attribute'' for
Rails::Generator::Base:Class (NoMethodError)
Am I missing something?
regards,
Arnaud
PS: detail of the error message I get.
$ ruby /usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/bin/rails
/usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/bin/../lib/rails_generator/options.rb:33:in
`...
2008 Oct 24
2
Rails problem
...c documentation for actionpack-2.2.0...
Installing RDoc documentation for actionmailer-2.2.0...
Installing RDoc documentation for activeresource-2.2.0...
# rails
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/../lib/rails_generator/options.rb:32:in
`default_options'': undefined method `write_inheritable_attribute'' for
Rails::Generator::Base:Class (NoMethodError)
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/../lib/rails_generator/base.rb:90
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require''
from
/usr/local/lib/ruby/site_ruby/1.8/ru...
2012 Jul 27
7
Getting error while starting server plz help
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/options.rb:32:in
`default_options'': undefi
ned method `write_inheritable_attribute'' for
Rails::Generator::Base:Class (NoMethodError)
from
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:90:in
`<class:Base>''
from
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:85:in
`<module:Genera...
2007 Jan 06
6
Exception notifier not working
...!self.class.local_addresses.detect { |addr| addr.include?(remote)
}.nil?
false
end
...and I''ve also tried:
def local_addresses
''addresses = read_inheritable_attribute(:local_addresses)
unless addresses
addresses = [IPAddr.new("127.0.0.1")]
write_inheritable_attribute(:local_addresses, addresses)
end
addresses''
nil
end
The README says to override the does-not-work-locally by putting
"local_addresses.clear" somewhere in your controller. I tried putting
it in a before_filter function and I get errors that "local_addresses&qu...
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2006 Feb 07
11
Possible Rails Security Issue?
I have an e-commerce site and users check out with a form. The
results of that form are sent to a "confirm your order" page via
POST. I take great pains to NEVER store the full credit card number
on my server--just the last 4 digits. I was very surprised to find
that by default Rails will record POST requests with parameters in
the production.log. And those parameters