similar to: Routing problem

Displaying 20 results from an estimated 100000 matches similar to: "Routing problem"

2005 Mar 08
15
Rails 0.10.1and WEBrick
Doesn''t appear to work with WEBrick. Works find with Apache/FastCGI. Something wrong in the way Rails is trying to process paths from the WEBrick server. If I try to send in http://localhost:3000/recipes/new, WEBrick is interpreting /new as my controller, instead of my action.
2005 Mar 07
0
Routing error follow-up
So, maybe I''m asking a stupid question, but if someone could point me in the right direction, I''d be eternally grateful. First, here''s what I have installed: $ ruby -v ruby 1.8.2 (2004-08-24) [i386-linux] $ gem list *** LOCAL GEMS *** actionmailer (0.7.1) Service layer for easy email delivery and testing. actionpack (1.5.1) Web-flow and rendering framework
2010 May 13
1
Routing - newbie question about shorting the url
Hi Right now I have my url showing as the following: http://localhost/categories/italian/recipes/special-pasta-sauce I would like it to be: http://localhost/categories/italian/special-pasta-sauce (or even http://localhost/italian/special-pasta-sauce) my category model has_many :recipes and my recipes model belongs_to :category (for the purposes of my test project a recipe can only belong to one
2006 Apr 24
3
Rails Recipes Book: Routing Error
Hi, I''m working on the first rails recipe, InPlaceEditing, and following the instructions very carefully. After generating the scaffold for Contact, I then go to the page, thus: http://localhost:3000/contacts/ I get this error: Routing Error Recognition failed for "/contacts/" What should I be checking for to resolve this problem? Thanks. -- Posted via
2010 Dec 03
2
Routing issue
HI, map.connect ''/ads/'', :controller=>''ads'', :action=>''index'' map.connect ''/ads/:id'', :controller=>''ads'', :action=>''show'' The above two lines i am using for routing in my application to show a list of ads when i visit at http:\\localhost:3000\add and an add with the id when i
2006 Jan 31
3
Lost in routing
I''m trying to create a modules based system where my controllers are all under modules. So the structure looks something like: app/ controllers/ message/ news_controller.rb email_controller.rb library books_controller.rb pictures_controller.rb home_page_controller.rb Each of those controller has
2008 Jul 30
0
Re: trouble routing with sub controller
On Jul 30, 9:50 am, Jack <jl...-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org> wrote: > Hello, > > I''ve got an app that is working fine on my local system such that a > URL like this > > http://localhost:3000/admin/customer/list > > routes to controller => admin/customer, action => list > > and something like this > >
2006 Jan 06
5
Routing problems - Apache proxy vs. Webrick direct
I dropped the use of fastcgi because I could not get popen working (see ''[Rails] Apache2 and popen''). It works under WebBrick. Since CGI is too slow, I thought I''d proxy to WebBrick via Apache. I am having routing problems now with escaped slashes in the URL. Here''s my routes.rb: map.connect '''', :controller => "wiki"
2006 Jul 15
4
routing requirements broken in Rails 1.1.4?
Hi, I have the following routes map.connect '':controller/:id/:action'', :id=>/4/, :defaults=>{ :action=>''show''} map.connect '':controller/:action'', :defaults=>{:action=>''index''} and when I point my browser to "localhost:3000/departments" I see an error because the show action cannot find a
2006 Jan 03
4
validates_presence_of *_id attributes
Hi all, I am a newbie to Rails. Please enlighten me on how to do this appropriately, the Rails and the Ruby way: Suppose I have a Recipe model. Let''s simplify things and pretend that it has only 2 attributes, a :name and the other is a ''category_id''. In the recipes table, category_id is a foreign key to field id of table categories. We also assume that I have generate
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
2010 Nov 04
0
Rails routing issue
Within a rails app I''ve got a special url (/profile) that I''m mapping to the user controller to allow a user to view and edit their profile. I made the following entries into my route file so that the "get" for profile will route me to the profile action in the user controller and the "post" for profile will route to the update_profile action in the user
2010 Jan 22
0
Routing/File Upload/Put vs. Post puzzle
I think I am doing something simply boneheaded but I don''t see it. I hope you are willing to take a look: I am simply wanting to upload a file and hand the file in my controller to some code that will process it. It is not getting stored. The UI is a "maintain" page with a file entry field in a form, and a button to import the file and some other maintenance tasks which are
2006 May 07
6
Unable to get past Tutorial 1 in RubyOnRails
Unable to get past Tutorial 1 in RubyOnRails On 29 April 2006 I met some one in a Microsoft sponsored developers? community gahering. I was told that ruby on rails is a free software, easy to use, and in no time will have my mind blown with all the wonderful prospects and possibilities. After almost a week, I am still unable to get past tutorial 1 and still unable to make any tutorials work
2008 May 04
5
simple Routing Error
Routing Error No route matches "/user/register" with {:method=>:get} The URL is http://localhost:3000/user/register Here is app/views/user/register.rhtml <h2>Register</h2> <% form_for :user do |form| %> <fieldset> <legend>Enter Your Details</legend> <div class="form_row"> <label
2009 Jan 26
5
Please help with a routing problem
Hi All I''m having some issues with the following routes problem. The routes.rb file ... map.resources :users map.connect ''/users/view_payments/:user_id'', :controller => ''users'', :action => ''view_payments'' The users_controller.rb file ... def view_payments @user = User.find[:params[:user_id]] @payments =
2006 May 02
10
Ruby on Rails w/Dreamhost - routes problem...I think.
I am trying to deploy my first app on Dreamhost using Ruby on Rails. I followed the wiki, but I think I am missing something. I think it may be in my RoR code, but I am not sure. My app runs fine when run as http://localhost:3000/AddPatientVisit/addvisits AddPatientVisit is the controller and addvisits is the form that posts back to the controller. I got rid of the index.html in public
2011 Feb 23
5
Routing problem
In my app i have word model, words_controller and want create new action for word model. I create new method ''test'' in words_controller, and adds: resources :words do member do put ''test'' end end in routes.rb my rake routes output: test_word PUT /words/:id/test(.:format) {:action=>"test", :controller=>"words"}
2005 Mar 19
2
routing problem 1.8.2/0.10.1/webrick?
I seem to have come to a strange problem getting started on rails. I had everything working in a virtual machine and then set up a seperate machine just for rails developement. It now seems something is broken a little. ruby 1.8.2, rails 0.10.1, postgres, using webrick: i created a table "users", then "generate scaffold User" view localhost/users works fine, shows the
2009 Oct 19
3
routing namespaced controllers
Hi, I have one controller in the /app/controllers/animals_controller.rb directory, and another in /app/controllers/production/services_controller.rb. The thing is that one Animal has many Services, and i''d like to access to them using something like: http://localhost:3000/animals/1/production/services/1 or at least with: http://localhost:3000/animals/1/services/1 I tried the last one