Displaying 20 results from an estimated 3000 matches similar to: "How to fix NameError?"
2006 Feb 22
7
Ruby on Rails with Apache2, MS SQL on Windows XP
My app was running fine with Linux, Apache2/Lighttpd and MySQL. I have a
need to migrate to Windows, Apache2 and MS SQL. But I keep getting the
following error when I load the initial home page. Anyone can please
give me a pointer where to go next for troubleshooting? Thanks in
advance.
NameError in <controller not set>#<action not set>
uninitialized constant
2006 Aug 05
1
"uninitialized constant" error when I go to app base URL???
Hi,
I''m getting the below attached error when I navigate to the root of my
web application on my hosting site (dreamhost.com), however in
development it works fine. Any ideas?
That is I have one controller so the direct URL is
"http://mydomain.com/contacts". This works on dreamhost and locally.
BUT when I go to "http://mydomain.com/" this works locally (on
2006 Apr 26
3
My GD2 is not working
I installed GD2 1.0/1.1, but they are both not working, does anyone
knows why? Great Thanks!
With GD 1.0 I got:
========================================================
RuntimeError
unknown symbol "gdImageSquareToCircle"
RAILS_ROOT:
/home/virtual/site1/fst/var/www/html/imodesite/public/../config/..
Application Trace | Framework Trace | Full Trace
2005 Aug 06
0
Re: Error when going to Fastcgi.
I fixed that missing comma, now I get this error:
Processing Base#index (for 24.94.221.205 at Sat Aug 06 14:40:47 GMT
2005)
Parameters: {}
NoMethodError (undefined method `before_filter'' for #<Object:
0x80859b8>):
/app/controllers/loginadmin_controller.rb:1
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require__''
2006 Aug 14
0
Recognition failed for ...
Hello,
I''m new to Rails so please forgive me if I''m asking any stupid
questions...
I''m trying to set up lighttpd so that is supports multiple Rails apps
(in the form of http://server/app1, http://server/app2, etc). OS:
Gentoo, 2.6.17 kernel, ruby 1.8.4, rails 1.1.6, lighttpd 1.4.11
My rails app is generated into /mnt/b/www/rails/test1/ and I''ve appended
2007 Feb 15
0
Routing Error after upgrade
My hosting company has upgraded to: ruby-1.8.5 rubygems-0.9.0
And I am now getting the following error on my ruby site:
http://www.scottisharchitecture.com/en/public/
no route found to match /en/public/ with {:method=>:get}
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/routing.rb:1292:in
`recognize_path
2006 Jan 07
2
app no longer runs - MissingSourceFile for any controller
Hello all. I somehow managed to break my rails app running under Apache 2
with fcgi. With any action I try, it throws an exception saying it can''t
find the source file. For instance, requesting an action in my
welcome_controller results in:
MissingSourceFile in <controller not set>#<action not set>
No such file to load -- app/controllers/welcome_controller.rb
The log
2006 Feb 08
2
NameError (uninitialized constant UnknownAction)
Hi, I''m having a strange problem that only seems to be happening on our
production server. I never get this error locally but get it quite
often on the server. The other odd thing is it doesn''t seem to be
resulting in any error pages on the site. Everything looks fine...
I wanted to add a rescue_action_in_public to email me when there are
errors. So I followed the
2006 Apr 13
4
Apache/fastcgi setup can''t find custom config/*.yml file!
All,
Apache 2/FastCGI on Linux
My fastcgi config. file is set up to run the "test" RAILS_ENV.
When I go to access a view associated with a particular controller, I
keep getting a ENOENT (file not found) error on a custom config. file
that I am attempting to load.
What I can''t figure out is why it can''t find the file.
Here''s the code that loads it in my
2006 Jun 05
1
file_column & RMagick
Hi,
I have a site where I wish to upload a resize a picture, and store it in
the file system. The best solution that I have found for this so far is
using file_column. This was working great, for about an hour, but all of
the sudden I began to get the following error (only when i attempt to
resize).
NameError (undefined method `assoc'' for class `Magick::ImageList''):
2006 Mar 03
1
weird error with login engine
Any ideas what would cause the following exception (using the login engine):
--------------------------------------
Full executation backtrace:
--------------------------------------
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1697:in
`execute_callstack_for_multiparameter_attributes''
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1677:in
2006 Jun 13
0
Yet Another Apache/FastCgi Setup Issue
I have set up FastCGI on the server and added 2 servers/processes and
increased the timeout from 30seconds to 60seconds. I _think_ I did
that properly because I now have to wait the full 60 seconds like
clockwork until I get the "Rails application failed to start" when I
browse to my URL. Before it was 30 seconds like clockwork.
When I run "ruby dispatch.fcgi" I get the
2006 Mar 16
1
login_engine error
Hey All,
I have been unsuccessful at getting the login_engine installed. I
have used it before but since the last time I''ve used it I can''t get
it to work correctly.
I was wondering if someone could help out with the following error:
undefined method `password_confirmation='' for #<User:0x2aaaad1421a0>
Any Help?
Thanks,
Adam
<<<<<<REST OF
2006 Jun 28
2
NoMethodError when setting session variable
I know this is dumb, but I can not set a session variable. I get the
followig error:
Processing Base#edit (for 67.174.108.88 at 2006-06-28 17:17:34) [GET]
Session ID: 3c4b2bad18c8bc289b719dc056913be7
Parameters: {"action"=>"edit", "id"=>"11", "controller"=>"image",
2006 Apr 10
0
Problem with freezing rails to vendor/rails
my vendor dirrectory. But for some reason my app is still using the
locally installed gem versions of Rails on TXD. Running svn propget
svn:externals vendor returns:
rails http://dev.rubyonrails.org/svn/rails/tags/rel_1-1-1/
Here is the error I''ve been getting (app started using the TXD rails.sh
script):
NoMethodError (undefined method `const_load!'' for
2006 May 14
0
RJS Template not getting called
I have a shared account on Site5.com running Rails v1.0. I installed
the RJS template plugin within my project.
My controller function gets called, but my corresponding RJS template
does not get called. The following is output (any thoughts?):
ActionController::MissingTemplate (Missing template
./../config/../app/views//workout/addjournalentry.rhtml):
2006 Jul 31
0
rescue_action_in_public useless to capture low level errors
Hi all,
I''m trying to make for nicer system error handling, with the help of
rescue_action_in_public
(see Recipe 47, in ''Rails Recipes'')
PROBLEM:
While it lets me capture an incorrect db name in database.yml (for
example),
with lower level errors like when the DB server is just down, I still
get the default system error screen for MySQL::ERROR :
2005 Oct 13
1
Typo Error: wrong number of arguments (1 for 2)
Howdy,
I am trying to run the latest version of Typo and when I hit the admin
login, I get the error below.
Anyone else seen this?
H
ArgumentError (wrong number of arguments (1 for 2)):
/lib/renderfix.rb:20:in `read_template_file''
/lib/renderfix.rb:20:in `render_file''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1.2471/lib/action_controlle
r/base.rb:637:in
2007 Apr 09
2
Errno::EACCES in Controller / Permission denied
Hello,
I did a seemingly smooth install of ferret, but when I try to add it to
my model, I get an error.
My info:
My rails site: shelikes (a restaurant review site)
My controller: Display
My model: Review
My only line of code added for ferret is:
class Review < ActiveRecord::Base
acts_as_ferret
...( more stuff not related )...
end
Below is the error information. Any thoughts on how
2008 Jan 05
7
Error! Ruby on Rails based on FastCGI, Hello world !
Hey,
I try to do my first steps in Ruby, and designed an "Hello World!"
Application. Now I want to install this Application on an Apache server.
I copied it to the "/public_html/" Directory here: (the application is
called "rubyapp")
http://sn00p.profusehost.net/rubyapp/
I ran http://sn00p.profusehost.net/rubyapp/public/dispatch.fcgi and get
an Error. So I looked