Displaying 20 results from an estimated 10000 matches similar to: "Using ActiveSupport's autoload_at"
2010 Sep 23
0
rake aborted! undefined method `autoload!'
Hi!
I made a app in rails 3.0.0, but when i try to upload to my hosting i
take to change the version of rails to rails 3.0.0.beta4
Im make the bundle install and every step cool, but when i try to do the
rake db:migrate i have the next error...
-bash-3.2$ rake db:migrate --trace
(in /home/aerotour/public_html/aeto)
rake aborted!
undefined method `autoload!'' for
2007 Oct 25
0
ActiveSupport's JSON decoder is incorrect.
http://dev.rubyonrails.org/ticket/9990 and reiterated here:
The current ActiveSupport JSON decoder uses YAML.load to parse json
documents, and YAML has different escaping rules from JSON. In
particular, in JSON, forward-slashes must be escaped (I''m not sure
why, it isn''t neccessary for Javascript, but thats the spec.) This
presents problems for URLs in ActiveSupport JSON:
2012 Oct 18
0
unexpected return (LocalJumpError) only when executing this code within autoloaded classes?
Posted on stackoverflow but no traction yet:
http://stackoverflow.com/questions/12942505/why-does-using-set-trace-func-work-in-some-places-but-cause-unexpected-return-l
The following is a generified part of the code in a gem I''m working on:
module SomeModule
class << self
attr_accessor :procedure
def log_events(*args)
args.flatten!
2011 Aug 17
7
autoloading LoadError: Expected known_ip.rb to define KnownIp
Hello, i have a problem with autoloading model classes.
I have had similar problems before when a file''s name in Rails'' opinion
did not match with the name of the class defined inside, but eventually
everything worked, so i didn''t look into details.
This time the problem comes from running Unit Tests and does not want to
go away.
I have a model class KnownIP defined in
2010 Aug 19
3
Help: "500 Internal Server Error"
Hi guys,
I am a completely ruby & rails newbie. i have being struggling on this
issue for almost 2 days, still can not figure out the problem.
there are two websites i''m trying to set up a development environment on
my pc running windows xp 32 bit version. a front-end customer facing
page & back-end admin page.
the procedure i have gone through is:
1. install ruby version 1.8.6
2012 Jan 23
0
Problem loading modules through ActiveSupport on_load
Working with modules to group certain methods. Currently I have this
set up and it works:
**# app/models/a.rb**
class A
has_history
end
**# lib/history.rb**
module History
module Model
def self.included(base)
base.send :extend, ClassMethods
end
module ClassMethods
def has_history(options = {})
send :include,
2024 Jan 03
1
Files exist, but sometimes are not seen by the clients: "No such file or directory"
Hello all,
We're having problems with files that suddenly stop being seen on the fuse clients.
I couldn't yet find a way to reproduce this. It happens every once in a while.
Sometimes you try to ls some file and it can't be found.
When you run ls on the parent directory, it is shown on the output, and, after that, you can access it.
I'm mentioning ls, but the problem also
2011 Jul 22
2
ActiveSupport not including i18n?
Went to use ActiveSupport in a gem today and got an error on account of not
having i18n installed. Either bundler should be installing i18n along with
activesupport or docs need to be updated.
quick repro: https://github.com/softwaregravy/repro_active_support_i18n
bundle exec irb
require ''active_support/all''
detailed steps and error:
1) add to Gemfile
require
2011 Jul 22
2
ActiveSupport not including i18n?
Went to use ActiveSupport in a gem today and got an error on account of not
having i18n installed. Either bundler should be installing i18n along with
activesupport or docs need to be updated.
quick repro: https://github.com/softwaregravy/repro_active_support_i18n
bundle exec irb
require ''active_support/all''
detailed steps and error:
1) add to Gemfile
require
2009 Apr 15
1
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
I''m on debian etch w/ ruby1.8, activesupport-2.3.2, getting this on the
first line of code which is require ''active_support'' :
/var/lib/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:55:
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require''
2006 Nov 05
1
Non-Fatal Anonymous Module Error
I am receiving the following non-fatal error from Rails for a particular
action:
Error calling Dispatcher.dispatch #<ArgumentError: Anonymous modules have no
name to be referenced by>
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:313:in
`to_constant_name''
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:270:in
2008 Feb 27
0
Activesupport error on start - extract_options
I''m trying to get Rails up and running on a new port of Ruby to
Arm/WinCE devices that I''ve been working on, built using CEGCC tools for
''mostly'' Posix compatability, rather than using the existing Ruby WinCE
binaries.
Ruby runs and is installed under \ruby in root of the device itself.
I''ve edited the following files of a default Rails 2.0.2 *zip*
2007 Oct 04
0
Module + Constant Issue
I ran into the following problem in my application when I went from my
dev environment to my staging environment. Modules and classes that
were previously autoloaded just fine in dev ended up with a strange
error in staging:
NameError: uninitialized constant Rails::Initializer::...
Weird.
Well, I managed to reproduce it, and here is the procedure. I''m
wondering if the approach
2009 Dec 08
0
ActiveSupport 2.3.5 and json 1.2.0 gem
Hey,
I''ve tried every trick I can find, yet I''m still unable to get the
json gem and ActiveSupport to play nice.
No matter in which order I load json and active support, I still end
up with: NoMethodError: undefined method `[]'' for
#<JSON::Ext::Generator::State:0x104b7fac0>
I''m trying to use the JSON object directly, *not* as a ActiveSupport backend:
2011 Apr 18
3
ActiveSupport 3.0.6: require 'active_support/core_ext' generates "circular require" warning
Hello,
i noticed some strange warnings when doing
require ''active_support/core_ext''
with activesupport 3.0.6.
If i do
gem ''activesupport'', ''=3.0.5''
require ''active_support/core_ext''
then it works fine.
Is this a bug in rails 3.0.6?
More precisely, if i do
$ irb -w
> require
2006 Jun 12
1
Debian vs Ubuntu for a postgresql database + rails
I''m going to be getting a VPS at rimuhosting.com, and it''ll only run
postgresql and an app that uses AR/ActionSupport. I always use
FreeBSD, but in this case my options are limited to RHEL4, FC5, Debian
and Ubuntu. I figure Debian and Ubuntu are probably preferable...so
which one should I go with? This will not run an email, ftp, or web
server - just postgresql 8.1 plus a Ruby
2010 Jul 25
0
Testing problems: ActiveSupport
Hey everybody,
I am trying to test a small application with a simple testing, but I get
the following errors while using Aptana 2.0.5 with Ruby 1.9.1 and Rails
2.3.8(I know why I get the first one, but I''m not sure about the
ActiveSupport errors):
Exception: undefined method `screen_name'' for nil:NilClass
2010 Aug 17
6
Overly aggressive constant unloading of Rails 3.0
In Rails 3.0 (both RC and edge), any constant that''s defined while loading a
file in development mode will get unloaded on each request, regardless of
whether it comes from an autoload path in the application or from external
code such as a gem.
Example file (tested on a fresh edge app):
# kittens.rb
require ''nibbler/json'' # "nibbler" is a gem specified
2011 Apr 30
1
Could not autoload inventory_active_record: uninitialized constant ActiveRecord
Trying to set up the inventory service on puppet 2.6.8, pretty sure
I''ve met all the dependencies but puppetmaster logs
Could not autoload inventory_active_record: uninitialized constant
ActiveRecord
When clients attempt to connect.
local gems:
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.7, 2.2.3)
actionpack (3.0.7, 2.2.3)
activemodel (3.0.7)
activerecord (3.0.7)
2006 Nov 07
1
Two ActiveSupport Tests Failing with Update Today
I just updated to the latest revision (5445) and ran rake for ActiveSupport
and received the following failures:
1) Failure:
test_autoload_doesnt_shadow_name_error(DependenciesTest)
[./test/dependencies_test.rb:662:in
`test_autoload_doesnt_shadow_name_error''
./test/dependencies_test.rb:655:in
`test_autoload_doesnt_shadow_name_error''