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
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
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/.
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
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
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
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
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
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
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
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
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:
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
13 matches
Mail list logo