Displaying 20 results from an estimated 10000 matches similar to: "Rails 1.2.1 console not working"
2006 Oct 09
1
error running 'ruby script/console' => "uninitialized constant RAILS_ROOT" ??
Hi,
Anyone suggest why when I try to run the console via ''ruby script/console'' I
get the following "uninitialized constant RAILS_ROOT" ??
Error:
================================
V:\Source\testapp>ruby script\console
Loading development environment.
./script/../config/../config/environment.rb:3:NameError: uninitialized
constant RAILS_ROOT
2009 Mar 21
6
script/console: "no such file to load -- application.rb (MissingSourceFile)"
Here''s what I get when I try to use the console with the current facebooker:
First I make a simple app:
rails foo -d mysql
cd foo
script/plugin install git://github.com/mmangino/facebooker.git
Then I go to config/environment.rb and change the rails version to
''2.2.2'' Then I run the console:
script/console
and I get:
[17:56][herdrick:~/rails/foo]$ script/console
2008 Mar 24
4
Doesnt show log on command prompt
I have latest version of mongrel installed.
But when I run ''ruby script/server'' it starts the server and shows
nothing else, like development log it used to show on my previous dev
machine.
Any idea?
--
Posted via http://www.ruby-forum.com/.
2009 Mar 22
1
Upgrading 2.2 to 2.3: console broken, "uninitialized constant Module::ActiveSupport"
Upgrading a Rails app from 2.2 to 2.3.2 (via 2.3.0). Got things
working in the browser, but script/console seems messed up in both
2.3.0 and 2.3.2:
$ script/console
Loading development environment (Rails 2.3.2)
/Library/Ruby/Gems/1.8/gems/rails-2.3.2/lib/initializer.rb:56:in
`env'':NameError: uninitialized constant Module::ActiveSupport
2008 Dec 11
2
uninitialized constant ActionVie
Hello
I am trying to transform my web app into a 2.2 ready app,
in my config/environment.rb
I wrote
Rails::Initializer.run do |config|
.....
# disabling the surrounding div if validation error
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
if html_tag.include?("class=")
html_tag.sub(%r{(class=["''])}, ''\1invalid '')
2008 Oct 25
2
Script/Server working but Script/Console not working
Hi all,
I have been having a very weird problem for a few weeks. I am able to
start up the server using "script/server" for my application and run
it successfully but "script/console" is not working. I have been
managing without it but somethings not right and i need to fix it.
This is the error that it throws and the trace.
Loading development environment (Rails 2.1.0)
2006 May 10
1
Problems With Console
I just recently got Ruby on Rails and am having some problems with ./
script/console. Whenever, I enter the command, I get this:
Loading development environment.
/usr/lib/ruby/1.8/irb/completion.rb:10:in `require'': No such file to
load -- readline (LoadError)
from /usr/lib/ruby/1.8/irb/completion.rb:10
from /usr/lib/ruby/1.8/irb/init.rb:218:in `require''
2008 Sep 08
2
Restful Authentication and State Machine state transfer question
I''m adding some code to a project using restful_authentication and
acts_as_statemachine
In the create method for a user there is the following code generated
by the restful_authentication template
@user.regster! if user.valid?
And this will save and the user record if it is valid. I understand
that the statemachine will then change the state from passive to
pending. It will guard
2006 Mar 18
4
Mongrel Console 0.1 -- script/console meets mongrel
This is a super quick announcement for a new Mongrel plugin called
mongrel_console. It was inspired by a request from Tobias L?tke who wanted
to tail out logs while Mongrel was running.
What mongrel_console does is combine the Rails script/console with Mongrel
so that you can control a mongrel server while using script/console. Sounds
weird but it''s quite awesome for development
2007 May 10
1
errors using ruby script/console
HI all, when i try to use the rails console with this command, ruby
script/console, i got the following errors:
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such
file to load -- readline (LoadError)
from /usr/local/lib/ruby/1.8/irb/completion.rb:10
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require''
from
2006 Feb 17
2
console doesn''t work
any one know this problem?
when i try to run console
#---------------------------------------------------------------
>ruby script/console
>Loading development environment.
>/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such file to load -- readline >(LoadError)
> from /usr/local/lib/ruby/1.8/irb/completion.rb:10
> from
2006 Apr 06
2
rails 1.1 - console broken
Have upgraded to rails 1.1 and now ruby script/console does not work.
Throws an error:
c:\work\development\rails\application1>ruby script/console
Loading development environment.
c:/tools/ruby/lib/ruby/1.8/irb/init.rb:151:in `parse_opts'': undefined
method `up
case'' for nil:NilClass (NoMethodError)
from c:/tools/ruby/lib/ruby/1.8/irb/init.rb:19:in `setup''
2006 Jun 17
4
ruby script/console fails to launch
Can someone please explain why I am see the following:
<snip>
rails/uploadimage> ruby script/console
Loading development environment.
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such file
to load -- readline (LoadError)
from /usr/local/lib/ruby/1.8/irb/completion.rb:10
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules''
from
2006 Mar 30
9
script/console not working after Rails 1.1 upgrade
Whenever I do script/console I get an error message:
Loading development enviroment.
c:/ruby/lib/ruby/1.8/irb/init.rb:151: in ''parse_opts'' : undefined method
''upcase'' for nil:NilClass (NoMethodError)
from c:/ruby/lib/ruby/1.8/irb/init.rb: in ''setup''
from c:/ruby/lib/ruby/1.8/irb/init.rb:54: in ''start''
from c:/ruby/bin/irb:13
2011 Feb 08
4
Remove ActiveRecord::Relation#& alias for 'merge' ? (or at least only reference and not use in AR)
Would the core team be open to the removal of the ''&'' alias for
ActiveRecord::Relation#merge?
The reason is that in Ruby the ''&'' operator refers to an intersection
of two sets of data, not a merge. (within the context of the Array
class)
Recently Arel added support for SQL Set Operators:
2-0-stable:
2006 Jun 23
4
Ajax.Request with page reload?
I need to send a POST request via a link, along with paramater data for
an action, and the page needs to reload. link_to_remote worked great
when I was updating a DOM element but obviously won''t work when I need
to reload a page. Is there an option
--
Posted via http://www.ruby-forum.com/.
2006 May 02
3
''NameError: uninitialized constant <MyEntity>'' in console
When I create a new model entity, and try to access it from the Rails
console I get the error:
>> b = Bar.new(:name => ''Some Bar'')
NameError: uninitialized constant Bar
from (irb):1
from :0
(My model class is called Bar, and is in file app/models/bar.rb)
So, I try to load the model class file, and I run into a more frigtening
error:
>> load
2005 Dec 14
2
console and webrick problems
Hi,
I''m having errors when running webrick or the console. webrik starts,
but give me an error when I try to load my controller. It give the same
error as the console:
#ruby script/console
Loading development environment.
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/console.rb:23:in
`exec'': No such file or directory - irb -r irb/completion -r
2010 Mar 03
2
Memcached: "no such file to load -- memcache-client" when running script/console
Hi folks. I''ve started down the memcached path and everything was
running grand until I decided to start up my console. I have manually
installed libevent 1.4.13 and memcached 1.4.4 into /usr/local,
following which I sudo gem installed memcache-client and SystemTimer.
development.rb has been modified to do caching with the
mem_cache_store.
The memcached process seems to work and my
2005 Dec 14
2
errors while starting console...
Hello,
when i try to start the console (./scripts/console) i get the following
error
./script/console
Loading development environment.
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/console.rb:23:in
`exec'': No such file or directory - irb -r irb/completion -r
script/../config/../config/environment --prompt-mode simple
(Errno::ENOENT)
from