Displaying 20 results from an estimated 50000 matches similar to: "Re: trouble routing with sub controller"
2006 Jul 05
1
Routing error "unitialized constant" after refactoring
Hi. I''ve heavily refactored an application. When I access
http://0.0.0.0:3000/ I now get the stack trace at the end of this mail.
My routes.rb:
ActionController::Routing::Routes.draw do |map|
map.connect '''', :controller => ''user/dashboard'', :action => ''boo''
map.connect '':controller/:action/:id'',
2006 Jun 29
2
Random routing errors in 1.1.3 with Mongrel
Since upgrading to 1.1.3 on our dev box, we''ve started to see random
routing errors with our apps running under Mongrel in production
mode. The errors seem to go away after a while but come back
everytime we restart the server. This may be a mongrel problem, it
may be a rails problem (I''ve posted a bug on the trac) and I was
wondering if anybody else had had similar
2007 Jun 15
4
404 Error in any controller/action on Media Temple
Hi everybody.
I''m a newbie on RoR. I have some experiencie developing in PHP or Java,
but I''m just starting with RoR.
A few days ago I signed up to the (gs) Grid Service on Media Temple.
This is my very first experience deplying RoR on a production
enviroment. Until now I just used the WebRick server on developement.
Well, the problem I''m having is that after
2006 May 25
0
(OT?) Rails App in Subfolder = Routing Error Recognition Failed
All,
I realize this was probably off-topic (not really mongrel-centric) -- my
apologies.
I "solved" the problem by appending to my Environment.rb:
ActionController::AbstractRequest.relative_url_root = "/RailsAppSample"
How come that doesn''t serve up the default "public/index.html" ? It caused a
Routing Error for "", so I added a temporary
2008 Feb 15
1
Socket read returned insufficient data
In the several months I''ve been using Mongrel, I''ve experienced two
crashes. Both were immediately following a "Socket read returned
insufficient data" error from HTTPRequest. Both times, the mongrel
process would hang indefinitely (and not respond to requests) untill
manually killed.
The first instance references a line where I was using
2008 Jan 24
1
NoMethodError (undefined method `to_sym' for {"6"=>"1"}:Hash
I''ve got a search form that was working on rails 1.2.6, but since
upgrading to 2.0.2, I''m getting this error when I post my form. Here''s
the full error:
Processing SearchController#results (for 24.173.26.226 at 2008-01-24
14:51:23) [GET]
Session ID:
2008 Mar 04
2
Why would ActiveRecord connect to Postgres as root?
My databases.yml makes no mention of root and in my dev environment
everything works fine, however following a deployment with Capistrano
about an hour ago, I get the following error:
PGError in HomeController#index
FATAL: role "root" does not exist
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
connection_adapters/postgresql_adapter.rb:713:in `connect''
2007 Jun 08
0
SimplaTable with error: singleton can't be dumped
Hello,
My first PDF report from rails.
When i try to render "tab.render_on(pdf)", I get that error message.
Thanks any help,
Helder
=================================================================
TypeError in ContasController#plano
singleton can''t be dumped
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
2008 Feb 11
3
can't update my data base using "update_attributes"
Hello,
I have this problem that my rails application works fine in development
environment on my local Linux and windows system but when I uploaded it
to work on the server in production environment I have this problem as
listed in the pasted log file at the end of this entry:
NoMethodError (undefined method `[]'' for nil:NilClass):
/app/controllers/admin_controller.rb:201:in
2008 Jan 30
3
Not all mongrel starting (Errno:EEXIST)
I''m playing with the mongrel clustering, and am having a problem getting 2
mongrels to start up reliably.
This should be a pretty simple cluster, with just 2 instances running. My
mongrel config (mongrel_cluster.yml) looks like:
cwd: /deployment/installed/myapp/current
log_file: log/mongrel.log
port: "8000"
environment: production
address: 127.0.0.1
pid_file:
2008 Jun 12
3
Upgrading to 2.1 breaks my named routes
I just upgraded to 2.1 and attempted to log in to my application and
when this line is reached in my login action:
redirect_to(index_url)
I get the error
"wrong number of arguments (0 for 1)" [stack trace below].
Here''s my route:
map.index ''index'', :controller => ''e_simply'', :action => ''index''
I found
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
Hi.
I am using BackgrounDRb to process thumbnails and upload to S3 -
things are hunky-dory in development (thumbs are generated, these are
uploaded to S3, the metadata is saved to trhe DB, and I get a nice
status page updated by periodic calls via ask_status), but when I
tried to deploy to our staging server and stop/start BackgrounDRb via
Capistrano, things blew up - well, not exactly,
2007 Jun 21
2
Error when trying to run expense program
Guys, I m trying to get up to speed on Rails via the Apple tutorial
at:http://developer.apple.com/tools/rubyonrails.html
Problem is when I try and access localhost:3000/expenses I get the
following error. It may be a breeze for you to figure out but since I
dont know jack about rails it seems cryptic to me. Application.rb seems
to be very similar to the database.yml file.
I''m running
2007 Sep 21
1
RESTful route gives a 500 error when Content-Type is set
I have encountered a problem with a RESTful route, I have the simple route;
r.resources :people
With a corresponding controller, when I tried to access it using
ActiveResource I get a server error, I have tracked this down to a
problem where if the header ''Content-Type: application/xml'' is sent it
errors out:
> curl -H ''Accept: */*''
2007 May 02
2
Routing to a static resource in Mongrel
All,
I would like to set up a route that causes a static "index.html" file
(in the "public" directory) to be served on a request to an empty URL
path (i.e. map.connect '''', ...).
Can I do that with Mongrel? Basically, I want the ability to do in
Mongrel what I will end up doing in Apache with a rewrite directive.
Thanks,
Wes
--
Posted via
2006 Nov 08
0
routing error does not get caught by rescue_action_in_public
I have this in my application controller.
def rescue_action_in_public(exception)
logger.error("rescue_action_in_public executed")
case exception
when ActiveRecord::RecordNotFound,
::ActionController::UnknownAction,
::ActionController::RoutingError
logger.warn("rendering 404 page")
render(:file =>
2008 Feb 10
2
Mongrel in development mode not reloading classes
Hi there,
Even though I am running Mongrel in development mode, I have to
manually restart Mongrel to load any changes that I have made to
controller or model code.
This is the output when I start Mongrel:
$ script/server start
./script/../config/boot.rb:29:Warning: require_gem is obsolete. Use
gem instead.
=> Booting Mongrel (use ''script/server webrick'' to force WEBrick)
2007 Oct 24
7
NameError in CustomersController#index
I''m new to Rails. I finished the Cookbook tut. no problem. I''m
trying to start a project of my own, follow the same instructions but
the difference is I created the database myself.
After I create the scaffolds and try them out I get this error
NameError in CustomersController#index
uninitialized constant Customer
RAILS_ROOT: ./script/../config/..
Application Trace |
2007 Jun 15
1
mongrel cluster issues, plain old mongrel OK
I just created a test rails app, and am having very wierd issues with
mongrel cluster. Here''s what I''m doing:
rails test
sudo chown -R mongrel:mongrel test
cd test
sudo mongrel_rails \
cluster::configure -e production \
-p 8000 -N 3 -a 127.0.0.1 --user mongrel \
--group mongrel
It correctly writes the mongrel_cluster.yml file to the config
directory. Now,
2007 Dec 13
3
Realise a web service with ruby on rails.
Hi ,
I want realize a web service with rails, but it''s the response it''s
very slow. I want only saw all element present in my base.
I did a base Customers (with element like id, name, phone,...). I
added two elements.
I did a model customer, a web_service customer.
In the file /app/apis/customer_api.rb
class CustomerApi < ActionWebService::API::Base
api_method :listid,