Displaying 20 results from an estimated 2000 matches similar to: "Rails doesn''t serve static files in production mode"
2006 Jul 19
1
RoutingError -- but only for one controller
This one has had me stumped all morning, so any ideas would be a big
help. I''m getting the following error for any request to one of my
controllers, ''client'':
ActionController::RoutingError (Recognition failed for "/client/new"):
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:488:in
`recognition_failed''
2006 May 13
7
Recognition Failure
I keep getting a Recognition failed for "/dispatch.fcgi" error. I
search for a solution and the closest I came to finding one was
someone saying "look at the Rewrite in .htaccess and you''ll be able
to figure it out." Well, I can''t! If anyone could help, I would
appreciate it.
Thanks!
Floyd
-------------- next part --------------
An HTML attachment
2007 Feb 15
1
Images and stylesheets are not serving
Hello
One of ours sites has just lost all it''s images and styling.
It''s not a very busy site at all, so it might have been not working
properly for some time now.
Here''s how we start it in Lighty
<pre>
$HTTP["host"] == "gregynog.glam.ac.uk" {
server.document-root = "/www/rails/greg/current/public/"
server.error-handler-404 =
2006 Mar 28
2
Newbie question - ActionController::RoutingError
When i run my server and just chk in browser i get
---------------------------------------------------
ActionController::RoutingError (Recognition failed for
"/rails_info/properties"):
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:488:in
`recognition_failed''
2005 Dec 08
1
SwitchTower, Apache, and Routing Errors
Hello,
I deployed a Rails App using Switchtower and now I''m getting a Routing Error
to my Javascript and Stylesheet files.
Has anybody else had this issue?
Here is the log file.
> ActionController::RoutingError (Recognition failed for
> "/javascripts/prototype.js"):
> /vendor/rails/actionpack/lib/action_controller/routing.rb:470:in
>
2006 Apr 19
1
Recognition failed for "/"
I am new to ROR and i have been following a few howto''s and just testing
things.
It works fine in webbrick yet if i try and access using lighttpd or if i
run
public/dispatch.fcgi from cmd line i get the error below
Thanks
Recognition failed for "/"
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:488:in
`recognition_failed''
2006 Jun 16
5
Application Error
Hi Folks,
When I have tried this cookbook example from onLamp tutorial,
I got some error like this,
output of development.log is
----------
Permission denied -
/var/www/html/cookbook/public/../config/../tmp/sessions//rub
y_sess.d51d8997edf6be91
only the first line of output is this,
output truncated.
---------
what it will be ?
How to solve this ?
In my browser, I am getting Applicaiton
2006 Apr 12
13
Public Directory not accessible
Been trying to deploy my rails app on Redhat ES3, Apache2, FastCGI with
Plesk all day. Fun stuff. Basically, the issue that I can not solve has
to do with access to /public. None of my images, javascripts, etc. are
working in the app. Trying to access any of these results in a 404 (or
routing error if in developer mode). Oddly, the 404 file it displays is
-- you guessed it -- in fact *in*
2006 Mar 30
4
404 Error on dispatch.fcgi
I''m a java/php programmer trying out Ruby/Rails on my Dreamhost account.
I followed the wiki steps to the letter (2x now) and am still getting a
404 when I hit my dispatch.fcgi.
http://mydomain.com/public/dispatch.fgci
Can someone give me suggestions on how to debug this problem?
Here is my dispatch.fcgi file:
#!/usr/bin/env ruby
#
# You may specify the path to the FastCGI crash log
2006 Aug 02
4
Disc quota exceeded when attempting to write session
Hi All,
When trying to write sessions file, I''m getting disc quota errors.
Looking into the sessions folder, I see:
-rw------- 1 www www 188 Aug 2 21:03 ruby_sess.d39a2c77b4750b72
-rw-r--r-- 1 www www 0 Aug 2 21:03 ruby_sess.d39a2c77b4750b72.tmp
I''m guessing the the tmp should not be there, as it does not show on
my dev setup.
I''m using rails (1.1.1)
2006 Feb 14
9
Deploying in Dreamhost
What pain. I am ready to switch hosts. I have this app in Dreamhost
where I load the static pages just fine. The location of my rails app
is /home/username/webaddress.com Under that resides the app/, public/
and so on. Like I said I can see my static pages that I have under
public since I have in the Managed host panel the following:
Web Directory: /home/username/[ webaddress.com/public
2006 Apr 12
5
File upload doesn''t work in production mode
Can anyone understand what the production.log file is telling me. I''ve
tried playing with the permissions for the folders and it makes no
difference. Every time I submit the form to upload the file I get
"Application error (Rails)" which doesn''t really help.
Processing DocsController#create (for 82.152.151.194 at 2006-04-12
12:44:13) [POST]
Session ID:
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 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 May 25
3
webservice timeout issue
I am having an issue where I am trying to test a weservice that I wrote by
connecting to it from ruby. When I submit my form that calls the webservice
it times out. you can see from the lighttpd log that the webservice
completes just after the timeout. any ideas? am I doing something wrong?
---- source ----
def validate
auth = ActionWebService::Client::Soap.new(AuthApi, "
2006 Jun 07
1
Web Service: NoMethodError (missing attribute: featured) !?!?!?!?!
Hi all -
I have a Player model. The database looks like this:
+-------------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| fname |
2006 Aug 17
2
Weird routing error in 1.1.6 slash frozen on edge
So i have this route set up:
map.connect ''xml/download/:user/audio/:category/:file'', :controller =>
''xml'', :action => ''download''
I am sending the user through an xml controller as it is coming from an
RSS feed, the download action looks like this:
def download
episode = Episode.find(params[:episode])
episode.downloads
2007 Aug 19
3
fastcgi issue on production
I just deployed my rails app to my production server. It''s all working
locally, but when I switched it over to the production server (at
dreamhost) I get this error:
# Logfile created on Sun Aug 19 15:22:48 -0700 2007 by logger.rb/
1.5.2.9
[19/Aug/2007:15:22:48 :: 1841] starting
[19/Aug/2007:15:22:48 :: 1841] Dispatcher failed to catch: You have a
nil object when you didn''t
2006 Jan 13
2
FastCGI problems
I''m having a lot of problems with my Typo install. My fastcgi fails horribly
after a reboot:
[13/Jan/2006:16:55:28 :: 19796] Dispatcher failed to catch: (Interrupt)
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each''
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi''
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in
`process!''
2005 Oct 11
1
RoR on Apache
I used generate/scaffold to create simple CRUD screen that works perfectly
with Webrick. I wanted to attempt to run the same ROR app on Apache. I
followed the instructions found at
http://wiki.rubyonrails.org/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP
with the alternate ending found at
http://wiki.rubyonrails.org/rails/pages/Fast+CGI+and+Apache2+for+Windows+wit
hout+VirtualHosts. I have