similar to: ruby and rails wont work even they're already installed

Displaying 20 results from an estimated 2000 matches similar to: "ruby and rails wont work even they're already installed"

2012 Jun 06
1
why to get the error 'undefined method `write_inheritable_attribute''
I started getting this error message when I attempt to do some rake tasks: $ rails destroy scaffold genotypes /usr/share/rails-ruby1.8/railties/lib/rails_generator/options.rb:32:in `default_options'': undefined method `write_inheritable_attribute'' for Rails::Generator::Base:Class (NoMethodError) from /usr/share/rails-ruby1.8/railties/lib/rails_generator/base.rb:90:in
2007 May 22
5
rails edge
hi, first time trying rspec, and rails edge. Are there any known issues running rspec with rails edge? for one, apparently script/generate scaffold_resource has been renamed just "resource". Do I just search/replace "scaffold_resource" with "resource" in file rspec_resource_generator.rb ? Somethings still missing. before i get "Couldn''t find
2007 Nov 26
2
Rails 1.2.6 gem freeze fails with gem 0.9.5 system
Freezing to the gems for Rails 1.2.6 rake aborted! uninitialized constant Gem::GemRunner tracing gives: no such file to load -- /Users/nathany/Sites/boat/oat/config/../vendor/ rails/railties/lib/initializer /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' ... which seems like it may be trying to load the frozen gems before they are there? It
2008 Oct 10
2
magical disappearing background processes!
Hi all, I''ve been having trouble for a long time with backgroundrb processes that suddenly vanish without a trace. What happens is that at some point I discover that all the backgroundrb processes are suddenly gone. Nothing special is seen in any of the log files. This has happened intermittently for a long time, and I was hoping that upgrading to 1.0.4 would somehow help me out, but
2006 Jan 05
7
repost - Can one edit the file that generates the scaffolding.css?
I am reposting this because not only am I VERY interested in the answer but because I think it would also be useful to many, many people. We kind of have a house-style here, so it would be nice if the generated scaffold.css would accommodate that. My questions are? Is it possible? Is it safe? How? bruce
2010 Jan 28
5
files are missing in rails app
I''ve built the slackware packages of rails. rails path is: /frm/ruby/1.8.6/lib/ruby/site_ruby/1.8 RUBYLIB : /frm/ruby/1.8.6/lib/ruby/site_ruby/1.8:/frm/ruby/1.8.6/lib/ruby/site_ruby/1.8/i686-linux/ I could created the rails application, but files are missing. Config - boot.rb, database.yml, environment.rb and routes.rb Public -
2010 Sep 08
6
Cannot start sqlite3
Hello everybody, i''m a long time watcher of these forums first time poster. I wanted to start getting into rails and have a play, I found a very useful guide on the Internet detailing the install process for Ubuntu 10.04, after the install and setup process which seem to complete OK, i went ahead and started my first project, however when I go to start the server I get this message?
2006 Mar 05
1
rdoc on edge rail fails at generator template
Infinite loop at a generator template :- controller.rb: c railties/lib/rails_generator/generators/components/controller/templates/controll er.rb:3:15: Expected class name or ''<<''. Got RubyToken::TkLT: "<" And BTW why are templates named .rb ? Thanks -- Posted via http://www.ruby-forum.com/.
2006 Mar 17
1
edge - scaffolds now pluralized?
Are my eyes going buggy, or did something recently change in Edge Rails so that now scaffolds are generated with pluralized controller/ helper/etc names? I peeked at the code in railties/lib/rails_generator/generators/components/scaffold/ scaffold_generator.rb around line 50, and it looks like there was a change there recently so that it now defaults to pluralized names. So why was this
2006 Jan 31
2
Problem generating CHM Rails doc
Hi, I have problem generating chm file for the rails doc. I''ve commaned the rdoc to generate the chm by: rdoc -f chm -o chm_folder action* rails-* It gave me the following error: vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb:3:15: Expected class name or ''<<''. G ot RubyToken::TkLT: "<" By adding
2009 Sep 18
13
Rails 2.2.3-1 Problem
After installing the rails I faced this problem. If anyone aware of this problem, kindly give solution for this. vellingiri@WebDevel:~/public_html/Isync$ ./script/server => Booting WEBrick... /usr/local/lib/site_ruby/1.8/rubygems.rb:149:in `activate'': can''t activate activeresource (= 2.3.4, runtime), already activated activeresource-2.1.0 (Gem::Exception) from
2006 Feb 25
10
Performance issue.. after a while
Hello, I have an project running on a dedicated server: Debian, P4 CPU 3.00GHz, 1GB RAM, ruby 1.8.4 (2005-12-24) [x86_64-linux], rails (1.0.0), activerecord (1.13.2) lighttpd-1.4.10 + fastcgi + mysql 5.0 7 dispatchers. The project is a game, so a typical user would visit 100+ pages. When the server is busiest, it gets 35-40k requests/hour. For some misterious reason after a number of hours the
2006 Oct 30
1
Testing
With the 0.2.0 code, unit testing of workers isn''t working out of the box. I created a bare rails project (dubbed "ninja") and generated one worker "FirstWorker" and did rake test rake test (in /home/joshua/tmp/20061030-bdbtest/ninja) /usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb"
2013 Aug 30
3
rspec-puppet not working
I''m trying to get rspec-puppet working and have run into a problem. I have a VM running ubuntu lucid, have installed rubygems 1.3.5 from the apt package and have install rspec-puppet (and other required gems), and rake, using gem install. I''ve run rspec-puppet-init in the module I want to test, and have created a very basic spec file for one of the classes in my module.
2010 Oct 13
4
Puppet and Augeas
Hi. Is there any way to make puppet run a particular module first before another module is run. For example, I''m using the augeas resource type in one of the modules. But libaugeas-ruby1.8 is not installed in the client machine. So when the catalog is run, I get the following error: Could not find a default provider for augeas. So I built another module that will install the
2011 Jan 24
1
segmentation fault on RMagick2
Hi, I''m getting this error when I try to create a migration file: $ script/generate migration create_session /Users/administator/.gem/ruby/1.8/gems/rmagick-2.13.1/lib/ RMagick2.bundle: [BUG] Segmentation fault ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darwin10] Abort trap I''m not sure how to solve it. Any ideas? -- You received this message because you are subscribed
2006 Oct 28
2
where is the "record" method??? i.e. which is used in generators (e.g. scaffold_generator.rb)
Hi, Anyone know where the "record" method is defined. Its used in generators like in the scaffold generator. An extract from it is below (taken from scaffold_generator.rb): def manifest record do |m| # Check for class naming collisions. m.class_collisions controller_class_path, "#{controller_class_name}Controller",
2007 Oct 02
23
Mongrel using way more memory on production than staging. Any ideas why?
I''ve been trying to track down the culprit of erratic behaviour and crashes on my production server (which is split into a number of Xen instances), so set up a staging server so that I could really try to get to the bottom of it. The staging server (also split with Xen) is set up pretty much identically as far as the mongrel_cluster server is concerned (the production box has two
2012 Sep 07
5
puppet hangs
Hi I am a newbie to puppet and I am going through the documents at " http://docs.puppetlabs.com/learning/manifests.html" the exercise were working normally then suddenly puppet hangs when I tried to apply a manifest root@nscbose:/home/bala/puppet# puppet -V 2.7.11 root@nscbose:/home/bala/puppet# cat /etc/debian_version wheezy/sid root@nscbose:/home/bala/puppet# ps aux | grep -i puppet
2009 Jan 16
10
Puppet playing badly with Debian etch rubygems
To install the ruby-augeas gem, I installed rubygems on Debian etch, which lead to: Setting up libgems-ruby1.8 (0.9.0-5) ... Setting up ruby1.8-dev (1.8.5-4etch4) ... Setting up rubygems (0.9.0-5) ... Before this (I mean *immediately* before this) puppet worked fine exceept for not being able to find a provider for Augeas. After this, though: ec2-www1:/usr/src# puppetd -t Failed to load