Displaying 20 results from an estimated 63 matches for "silence_warnings".
2006 Feb 09
4
Login_Engine: trouble configuring
...from
./script/../config/../vendor/plugins/bundled_resource-0.9/init.rb:1
8:in `load_plugin''
from
d:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:311:i
n `load_plugin''
from
d:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:311:i
n `silence_warnings''
from
d:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:311:i
n `load_plugin''
from
d:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:145:i
n `load_plugins''
... 14 levels...
from
d:/ruby/lib/ruby/site_ruby/1.8...
2006 Jan 11
1
logger in my classes
...require ''lib/localization''
just after the line
require File.join(File.dirname(__FILE__), ''boot'')
I tried many ways to reuse the logger class. The cleaner way seemed to
be based on Object::RAILS_DEFAULT_LOGGER that is defined in
/railties/lib/initializer.rb:
silence_warnings { Object.const_set "RAILS_DEFAULT_LOGGER", logger }
But all I get is an uninitialized constant :(
Please tell me the right way to reuse logger.
--
Jean-Christophe Michel
2008 Mar 28
1
undefined method ''alias_method_chain''
...ig/../vendor/plugins/facebooker/init.rb:3:in `load_plugin''
from ./script/../config/../vendor/rails/railties/lib/initializer.rb:348:in
`load_plugin''
from ./script/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in
`silence_warnings''
from ./script/../config/../vendor/rails/railties/lib/initializer.rb:348:in
`load_plugin''
from ./script/../config/../vendor/rails/railties/lib/initializer.rb:158:in
`load_plugins''
... 6 levels...
from ./script/../config/../vendor/rails/railties/lib/commands/generate.r...
2008 Jan 30
3
Not all mongrel starting (Errno:EEXIST)
...7:in
`evaluate_init_rb''
from deployment/installed/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/rails/plugin.rb:79:in
`evaluate_init_rb''
from
/deployment/installed/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/kernel/reporting.rb:11:in
`silence_warnings''
... 21 levels...
from /deployment/installed/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/command.rb:212:in
`run''
from /deployment/installed/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3
/bin/mongrel_rails:281
from /deployment/installe...
2006 Aug 23
8
acts_as_ferret with Mongrel and Edge Rails
Hi there,
Has anyone tried acts_as_ferret with Edge Rails and Mongrel? When I
install the plugin to a project that has Edge Rails frozen, and the
Mongrel gem installed, I can''t start the server. There''s no error, it
just doesn''t start.
I''ve used acts_as_ferret in the past with WEBrick, and stable Rails
releases without a hitch.
If I remove the
2010 Aug 30
3
paperclip gem install failed
when i''m installing paperclip gem its return err (i18n requires
RubyGems version >= 1.3.6)
the os is ubuntu 10.04 64bit
-nirosh-
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send
2009 Jun 23
2
syntax error, unexpected tINTEGER, expecting $end
...INTEGER,
expecting $end
"95036
^
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:2203:in `compute_type''
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings''
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:2200:in `compute_type''
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1640:in `instantiate''
from /opt/local/lib/ruby/gems/1....
2006 Feb 26
7
LoginEngine problems
I''m trying to get a simple authentication system going for a small rails app.
After much research, it looks like LoginEngine should do exactly what I want.
Now, the documentation is somewhat confusing to me when looked at in the light
of reality. There are some places that say you have to install the "engines"
plugin. But, I cannot find such a beast.
So, I installed the
2006 Feb 26
6
Having trouble getting Edge Rails running
Hello,
I''ve been playing with this for hours, and got through a couple glitches
(e.g. updating to Ruby 1.8.4) but this one is well beyond my N00b
skills. When trying to run script/server I get:
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:87:in
`as_load_path'': stack level too deep (SystemStackError)
from
2009 Mar 14
5
The 2.3 branch and Rails Edge failing
...> init.rb:1:in `evaluate_init_rb''
> from ./script/../config/../vendor/rails/railties/lib/rails/
> plugin.rb:146:in `evaluate_init_rb''
> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/
> active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings''
> from ./script/../config/../vendor/rails/railties/lib/rails/
> plugin.rb:142:in `evaluate_init_rb''
> from ./script/../config/../vendor/rails/railties/lib/rails/
> plugin.rb:48:in `load''
> from ./script/../config/../vendor/rails/r...
2006 Apr 06
4
Engines 1.1.1
Since a minor change in Rails (renaming the file that the version is
stored in, namely) causes a bit of a hiccup for the Engines plugin,
here''s a new release, full of bug fixes and other nice things.
ALL users of Engines are advised to update their copy of the plugin to
get these fixes. The Engines plugin is fully backwards compatible with
Rails 1.0. Anyway - to update, please download
2009 Apr 06
1
Seeking help with basic installation
...s_in''
vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in
`require''
vendor/rails/activesupport/lib/active_support/core_ext/kernel/
requires.rb:7:in `require_library_or_gem''
vendor/rails/activesupport/lib/active_support/core_ext/kernel/
reporting.rb:11:in `silence_warnings''
vendor/rails/activesupport/lib/active_support/core_ext/kernel/
requires.rb:5:in `require_library_or_gem''
vendor/rails/activerecord/lib/active_record/connection_adapters/
sqlite3_adapter.rb:10:in `sqlite3_connection''
vendor/rails/activerecord/lib/active_record/connection_...
2008 Jun 04
2
gem_original_require
...active_support/dependencies.rb:495:in
`require''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/kernel/requires.rb:7:in
`require_library_or_gem''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/kernel/reporting.rb:11:in
`silence_warnings''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/kernel/requires.rb:5:in
`require_library_or_gem''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/postgresql_adapter.rb:7:in
`postgresql_connection''
c:/...
2009 Jan 22
8
From Instantrails to the Mac
...vironments/
development.rb:22:in `load_environment''
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:
340:in `load_environment''
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/
lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings''
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:
333:in `load_environment''
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:
136:in `process''
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
init...
2006 Nov 29
6
Noob needs help installing backgroundrb on Windows XP
...../config/../vendor/plugins/backgroundrb/init.rb:2:in
`load_plugin''\r
\tfrom
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:in
`load_plugin''\r
\tfrom
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/reporting.rb:11:in
`silence_warnings''\r
\tfrom
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:in
`load_plugin''\r
\tfrom
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:158:in
`load_plugins''\r
\tfrom
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:158:in...
2006 Mar 07
1
column human names in validation errors
hi,
I don''t know how to change field names in error messages.
if I add error message like this:
errors.add( "age", "You must be at least 18 years old" ) unless age >=
18
when error occures this text is displayed
Age You must be at least 18 years old
so the first word(s) is column human name for that attribute.
how can I change that? of course only in error
2006 Jan 22
0
problem setting up lighttpd and rails app.
...wholesale/public/../config/../config/environments/devlopment.rb
(Errno::ENOENT)
from
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:155:in
`load_environment''
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/core_ext/kernel.rb:27:in
`silence_warnings''
from
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:152:in
`load_environment''
from
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:81:in `process''
from
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:42:in...
2007 Sep 08
0
rspec_on_rails - necessary to force "test" env?
Hi all
rspec_on_rails/lib/spec/rails.rb starts:
------
dir = File.dirname(__FILE__)
require ''application''
silence_warnings { RAILS_ENV = "test" }
------
That force into "test" environment is causing me trouble and I''ve
commented it out.
Why? I''m testing a plugin, and have a sort of mini rails app that I
use for the specs. The environments in this app are not dev/
production/...
2008 May 29
0
NoMethodError: undefined method `configuration' for #<String inside railties?
...hodError: undefined method `configuration'' for #<String:
0x1145040>>
After some hacking I''ve figured out it emanates from plugin.rb in
railties (railties/lib/rails/plugin.rb) in the following block:
def evaluate_init_rb(initializer)
if has_init_file?
silence_warnings do
# Allow plugins to reference the current configuration
object
config = initializer.configuration
eval(IO.read(init_path), binding, init_path)
end
end
end
In the instances I have seen the failure occur, initializer is a
string tha...
2008 Oct 28
1
Old Rails app: can't find file_column gem?
...from script/../config/../vendor/plugins/file_column/init.rb:5:in
`load_plugin''
from
./script/../config/../vendor/rails/railties/lib/initializer.rb:348:in
`load_plugin''
from
./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in
`silence_warnings''
from
./script/../config/../vendor/rails/railties/lib/initializer.rb:348:in
`load_plugin''
from
./script/../config/../vendor/rails/railties/lib/initializer.rb:158:in
`load_plugins''
from
./script/../config/../vendor/rails/railties/lib/initializer.rb:158:in
`each'&...