[Rails] Re: What is this error

2013-08-21 Thread jsnark
This code needs to be refactored. It is way too long. Many lines are too long. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubs

[Rails] Re: What is this error

2013-08-19 Thread Robert Walker
keerthi priya wrote in post #1119115: > Hi all, > > I am getting this bellow error > No method error undefined method `each' for nil:NilClass The error is what it says it is. You are sending the message 'each" to a nil object reference. Look back through the stack trace until you get to the fi

[Rails] Re: What is this error?

2012-03-26 Thread Ruby User
Hi Alex, I was able to solve the issue. Don't know what was wrong, but I removed ruby, gems, rails, rvm completely from the machine. Rebooted and installed everything freshly. That worked, now no more errors in loading any gem. thanks for your help -- Posted via http://www.ruby-forum.com/.

[Rails] Re: What is this error?

2012-03-24 Thread Alex Mercer
Hmm.. What gives this command? rvm current Have you tried require commands from ruby console(irb) ? On Saturday, March 24, 2012 12:34:57 AM UTC+2, Ruby-Forum.com User wrote: > > Hi Alex, > changing it to require 'action_pack' worked. > But other gems has the same issue - > > # ./test.rb > /usr

[Rails] Re: What is this error?

2012-03-23 Thread Ruby User
Hi Alex, changing it to require 'action_pack' worked. But other gems has the same issue - # ./test.rb /usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler (LoadError) from /usr/local/rvm/rubies/ruby-1

[Rails] Re: What is this error?

2012-03-23 Thread Ruby User
Yes. actionpack is installed. # gem list -d actionpack /usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/yaml.rb:56:in `': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. *** LOCAL GEMS *** acti

[Rails] Re: What is this error?

2012-03-23 Thread Alex Mercer
1. You sure that actionpack is installed? 2. Instead of require 'actionpack' use: require 'action_pack' On Friday, March 23, 2012 5:17:10 AM UTC+2, Ruby-Forum.com User wrote: > > Hi Alex, thanks a lot for some informative advice. > I tried those things. Still no luck :/ > > # env | grep

[Rails] Re: What is this error?

2012-03-22 Thread Ruby User
Hi Alex, thanks a lot for some informative advice. I tried those things. Still no luck :/ # env | grep -i rvm rvm_bin_path=/usr/local/rvm/bin GEM_HOME=/usr/local/rvm/gems/ruby-1.9.3-p125 IRBRC=/usr/local/rvm/rubies/ruby-1.9.3-p125/.irbrc MY_RUBY_HOME=/usr/local/rvm/rubies/ruby-1.9.3-p125 rvm_ta

[Rails] Re: What is this error?

2012-03-22 Thread Alex Mercer
Heh.. seems you have problem with RVM load? As your RVM installed in systemwide maner check that your `$HOME/.bashrc` file have this line at the end: source '/usr/local/rvm/scripts/rvm' If not then add and reload terminal. Then.. 1. Navigate to folder with your script and type that: rvm

[Rails] Re: What is this error?

2012-03-22 Thread Ruby User
Here is the o/p of gem list # gem list -d actionpack /usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/yaml.rb:56:in `': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. *** LOCAL GEMS *** actionpa

Re: [Rails] Re: What is this error?

2012-03-22 Thread Colin Law
On 22 March 2012 20:45, Ruby User wrote: > Hi Alex, > > I tried you suggestion. Still getting the same error. > > > #!/usr/bin/ruby1.9.2 > #!/opt/framework3/ruby/bin/ruby -w > #!/usr/bin/ruby -w > require 'rubygems' > require "cgi" > require "action_pack" > > > > ./test.rb:6:in `require': no such

[Rails] Re: What is this error?

2012-03-22 Thread Ruby User
Hi Alex, I tried you suggestion. Still getting the same error. #!/usr/bin/ruby1.9.2 #!/opt/framework3/ruby/bin/ruby -w #!/usr/bin/ruby -w require 'rubygems' require "cgi" require "action_pack" ./test.rb:6:in `require': no such file to load -- action_pack (LoadError) from ./test.rb:6:

[Rails] Re: What is this error?

2012-03-22 Thread Alex Mercer
First.. paste in your file: require 'rubygems' before another require's: + Use require 'action_pack' insted of deprecated call 'actionpack'. On Mar 22, 2:35 am, Ruby User wrote: > I seem to have correct include path, but a lot of gems can't be loaded > via "required". What could be the proble