Displaying 20 results from an estimated 3000 matches similar to: "Rails 3 warning"
2011 Oct 13
1
puppet apache module
I''m getting this and it isn''t applying my apache module. Is it because
of these warnings?
notice: Starting Puppet client version 2.7.5
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/puppet-2.7.5/lib/puppet/
provider/service/freebsd.rb:8: warning: class variable access from
toplevel
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/puppet-2.7.5/lib/puppet/
provider/service/freebsd.rb:9:
2010 Aug 26
2
Today: constant JSON::Parser not defined
(Using the latest 3-0-stable and rvm, and ruby-1.9.2-p0)
Yesterday everything worked, my own changes are very minor and in the
application only. Did anything change that could have caused this
problem? Unfortunately simply going back in rails alone to the
original "RC2" git-tag did not immediately help, so it may be some
other problem (on my own system only, even if I''m
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,
2011 Feb 05
1
ActionMailer::Base.default_url_options
Hi,
I want so set a default url for ActionMailer. I know,
ActionMailer::Base.default_url_options is deprecated, so I use
config.action_mailer.default_url_options = {
:host => "localhost"
}
in my environments (test.rb, production.rb, ...). The problem is, I get a
deprecation error and rails won''t start. I have no solution...
Any hints for me?
Testing started at
2010 Apr 26
2
/lib/rack/request.rb in my gem - is this reserved?
Hi!
I write a gem at the moment. The Gem need to register during the
process in the rack middleware.
So I make an folder "rack" inside my "lib" folder. I called the file
"request.rb" because it keeps track of requests.
So we speaking about the file /lib/rack/request.rb
But even if I place an empty file on this, I get the following:
2011 Nov 05
2
Where is my gem file located so that i can rake test
Googling around, I found that apparently adding to the gem file will
fix my problems, but where do i find the gem file? what is the name of
the gem file?
"group :test do
# Pretty printed test output
gem ''minitest'' ####### add this line #######
end"
Here is what happens when i run rake test, please note that i have
already installed minitest
2011 May 15
0
Upgrading to Rails 3.1
I''m working on updating my rails 3.0.5 app to rails 3.1.0.beta1 and I
seem to be running into a problem when doing `rake rails:update` when it
runs `rake rails:update:javascripts`
Here is my bundle:
Gems included by the bundle:
* RedCloth (4.2.7)
* actionmailer (3.1.0.beta1)
* actionpack (3.1.0.beta1)
* activemodel (3.1.0.beta1)
* activerecord (3.1.0.beta1)
* activeresource
2012 Aug 14
1
NoMethodError: undefined method `accept' for nil:NilClass
Here''s the trace,
NoMethodError: undefined method `accept'' for nil:NilClass
from
/Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in
`to_sql''
from
2006 Feb 09
0
Problem with web services
Hi all:
First of all i apologize for my poor english, if don''t understand something
please tell me, and i will try to explain again.
Hi have a litlle problem with web services. I explain, i a have a web
service in php that return a structure seems to this:
Array
(
[url] =>
[crm] => Array
(
[0] => Array
(
[surname]
2013 Aug 29
4
linkedin gem
Hi,
I am following this post *
http://www.sitepoint.com/ruby-social-gems-linkedin/* for using linked gem
and API for getting profile and other stuff
But at the end I am getting this error:
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
2011 Nov 01
1
rake db:migrate aborted
I''m reading the rails tutorial book and in chapter 6 page 199 I have
to make a rake db:migrate, but I get this error:
rake aborted! undefined method `prerequisites'' for nil:NilClass
(See full trace by running task with --trace)
When I try with rake db:migrate --trace I get the following errors:
rake aborted!
undefined method `prerequisites'' for nil:NilClass
2012 Jan 26
2
Problem while creating new resource on ActiveAdmin
HI All,
I have installed the Active Admin successfully, but facing the following
error while restarting the server after generating an resource.
*rails generate active_admin:resource item*
/home/logs/Desktop/training/RAILS/courier/app/admin/items.rb:1:in `<top
(required)>'': uninitialized constant Item (NameError)
from
2010 Jun 17
2
"LoadError: no such file to load -- openssl", following Rails Guides
[With apologies for cross-posting at http://railsforum.com/viewtopic.php?id=39587]
Hi all,
I''m following the edge ''getting started'' guide at
http://guides.rails.info/getting_started.html, running ROR 3. I''m
running Ruby 1.9.2 (as instructed by the guide), installed using RVM.
I get an error when following "4.3 Setting the Application Home
Page".
2011 Sep 08
1
Magic Multi Connections gem + Rails 3.1
Hello,
Like in topic, did anyone tried to run this gem under 3.1? I''m getting
error that mirror_db_connection is not valid key:
ArgumentError: Unknown key: mirror_db_connection
from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/
activesupport-3.1.0/lib/active_support/core_ext/hash/keys.rb:44:in
`block in assert_valid_keys''
from
2011 Apr 18
2
rubygems fail - require hpricot!
Hi guys,
I wanted to fetch some info from webpage and use it in my db. I read
hpricot is one way to do it. But the problem is I''m unable to use it
with my app. For some reason after successfully installing hpricot it
fails when I try to use it in the rails console.
I''ve been trying to fix this for the last four-five days. I''m stumped !
I tried re-installing everything
2011 Dec 07
1
Errors when running the local server
Hi all,
I''m running an application on my localhost, but the command "rails server"
behaves very inconsistently. About an hour ago it ran well on another app,
but got errors now.
According to the errors it seemed that the server began to run but the
there is something missing in the library. But I''m very new to Rails so
cannot figure out what do these lines mean:
2011 May 01
2
More detailed Test::Unit error report
Hi,
I''m starting to use Test::Unit to create unit tests for my Rails
Applications/Plugins. I don''t have much experience in Ruby Unit Testing. The
problem is that the output report is very simple and it is very difficult to
discover where is the error. Test::Unit does not show the line number of the
error and the Stack Trace printed using the --trace option does not help
either.
2011 Jul 18
1
rails server being aborted due to mysql lib file not available
Hi,
My system has the following :
MacOs Leopard
Rails 3
Ruby 1.9
Mysql 5.1.58
mysql2 ruby gems
My problem is that when i give "rails server", the task aborts with
the foll error
rails server/Users/nisha/.rvm/gems/ruby-1.9.2-p180@rails3/gems/
railties-3.0.5/lib/rails/script_rails_loader.rb:11: warning: Insecure
world writable dir /usr/local/bin in PATH, mode 040777
2011 Oct 14
3
RSpec 2 not working on Rails 3.1.1
Hey,
I updated some Gems and now rspec seems to be broken. The weird thing is
it fails because of Test::Unit which doesnt make much sense to me.
/Users/username/.rvm/gems/ruby-1.9.2-p290@ror_project/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53:
warning: already initialized constant WFKV_
/Users/username/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/test/unit/testcase.rb:9:in
2011 Oct 04
4
Problem: Puppet under Passenger.
Having issues getting Puppet running under Passenger.
From httpd error_log:
[ pid=24647 thr=268010020 file=utils.rb:176 time=2011-10-04
11:45:10.892 ]: *** Exception LoadError in
PhusionPassenger::Rack::ApplicationSpawner (no such file to load --
puppet/application/master) (process 24647, thread #<Thread:
0x0000001ff30448>):
from