similar to: Undefine a route?

Displaying 20 results from an estimated 100000 matches similar to: "Undefine a route?"

2007 Jun 12
1
Route Regex Requirement not working properly
I''m trying to get my routes to work properly. Here''s how I''m defining one of my routes: map.downloads '':category/downloads'', :controller => ''downloads'', :action => ''list_downloads_for_category'', :requirements => {:category => DownloadableFileCategory.category_regex} And here''s the method
2008 Jan 16
5
named route new_session not working
Anyone have any idea why a named route would NOT work? I did rake routes to make sure it was there and it was but for some reason new_session doesn''t work. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,
2007 Jun 28
2
form_tag routing error in >= 1.2.2 ?
I have a simple feedback form handled by feedback_controller. For methods I use "new" for the form and "create" to handle the feedback submitted. Routes are simple enough: map.resources :feedback What''s odd is this works fine in Rails 1.2.1: <% form_tag(feedback_path) do -%> But in Rails 1.2.2 and 1.2.3 I get: feedback_url failed to generate from
2007 Jun 30
2
REST Route how to avoid hacking routes
what''s the best protection against someone trying to modify an URL in a named route /users/25/posts if the user enter another URL /users/26/posts, he can get acces to user 26 posts unless .. a before_filter is checking the current_user ID but is there any other way to do it ? thanks for your lights kad -- Posted via http://www.ruby-forum.com/.
2009 Mar 13
2
ruby capitalizing singular version of route
Hi All, I''ve searched on this topic and can''t seem to find anyone results saying others have had the same problem, so hope someone here can help. if in routes, I map addresses: map.resources :addresses If get the following routes: addresses new_Address edit_Address Note that the singular routes (new, edit) are capitalized. to prove the issue, in console, I can type: >>
2007 Dec 28
1
Getting wrong route - fairly complete error description
OK, I have a routing problem, that seems to be working in the console, but not in the app. I have people that have nested tasks, like so: ------------------------------- # routes.rb map.resources :people do |person| person.resources :phone_notes person.resources :documents person.resources :tasks, :member => {:complete => :put} end map.resources :tasks, :member => {:complete =>
2008 Jan 17
0
It seems to be a restful_authentication bug (was Re: Re: named route new_session not working)
On 1/16/08, Jimmy Palmer <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > sorry for the ambiguity. I will work on being more descriptive. :) > > In the method access_denied in the file authenticated_system.rb from > restful athentication, it generates this: > > def access_denied > respond_to do |format| > format.html do >
2007 Nov 21
1
Problem with route defaults and caching
Hi, I''m having a problem with routes and caching. I have two routes set up as follows in my route file... map.connect ''stats'', :controller => ''stats'', :action => ''index'' map.connect ''stats/:type'', :controller => ''stats'', :action => ''index'', :defaults => {:type
2008 May 29
2
Resource routing error with the route equipment/new
I''m having an issue with resource routing after running a "ruby script/generate scaffold equipment" command. I did not make any changes to the equipment model/controller/views after running this. The full command I ran (all one line) ... ruby script/generate scaffold equipment name:string description:text contact:text keywords:string created_at:datetime created_by:integer
2008 Aug 20
2
Re: undefine "require_gem"
On 20 Aug 2008, at 13:47, Amin Shah wrote: > > Frederick Cheung wrote: >> On 20 Aug 2008, at 13:41, Amin Shah wrote: >> >>> update, boot.rb replace the "requiregem" etc. But still don''t get at >>> any >>> success. >>> >> require_gem is just gem now. >> >> Fred > > Thanks for your reply, > So at
2008 Dec 02
0
Best route for has_many subrecords
Hello all, I have a model, say it''s called Person, which has_many Responsibilities. I would like the "show" view for the person controller to list all of the responsibilities for that person. (That''s the easy part -- I think I know how to do that part.) At the end of the list, I would like to include a text field into which a new responsibility may be added. What
2009 Jan 26
0
undefined method error for a polymorphic route
Hi, I''m trying to upgrade a 2.0.2 app to 2.2.2, but first I decided to upgrade to 2.1.2 after reading some posts recommending to do this. After firing up the app and running my tests, I now see that my polymorphic routes seem to be broken. test_should_create_footerpage(PagesControllerTest): NoMethodError: undefined method `footerpage_url'' for #<PagesController: 0x4814648
2008 Sep 23
5
Problem getting Rails to emit the correct (proxy) domain in route urls
Behind the scenes my app runs like this: http://myapp.mydomain.com/myapp and and https://myapp.mydomain.com/myapp are Apache 2.2 virtual hosts proxy-balanced to a mongrel cluster on the same machine. But I need to make these available here: https://www.mydomain.com/myapp and https://myapp.mydomain.com/myapp are on a second server using ProxyPass and ProxyPassReverse to
2008 Jul 11
1
Using custom routes to handle new nested resources
I have a couple of resources, one nested in the other, such that my resource spec in routes.rb is: map.resources :parents, :has_many => :children This will generate a route for a new child that assumes that the parent has already been saved, something like: /parents/:parent_id/children/new But what if I want a route that handles the case where the parent resource is also new, and thus
2007 Jan 19
2
route issue after update to 1.2.1
Updated...(trimmed comments) $ gem list *** LOCAL GEMS *** actionmailer (1.3.1, 1.2.5) actionpack (1.13.1, 1.12.5) actionwebservice (1.2.1, 1.1.6) activerecord (1.15.1, 1.14.4) activesupport (1.4.0, 1.3.1) postgres (0.7.1) rails (1.2.1, 1.1.6) rake (0.7.1) rmagick (1.14.1, 1.13.0) sources (0.0.1) Updated application... $ rake rails:update (in /home/craig/svn/th-db/branches/phase3) install -c -m
2008 Mar 01
2
No route matches with {:method=>:get} Error in AWDWR Book
Hi I''m working on the AWDWR book and I''m on the admin section of the book. I have rails 2 installed on my machine and I have ran into an error when I created my controller login but when I go to http://localhost:3000/login/index I get this error: No route matches "/login/index" with {:method=>:get} I haven''t touched the routes.rb file and when I generated
2006 Dec 17
2
Route generation and clash prevention
Let''s say you''re building a movie rental website. You have customers, movies, and rentals to manage. REST style urls might look like this: /customers/4 /movies/15 /rentals You''d probably also want administrators to be able to view all of the rentals done by a particular customer, and other similar details: /customers/4/rentals /movies/15/rentals /rentals/529/customers
2009 Jan 10
0
General Question about route generation Rails 2+
I have been searching for the definitive answers regarding routes and new controllers, so far no clear statement: Rails 2+ route generation, is it done only once at start up of mongrel? Is this only a dependency on how mongrel does things - looking for updates of config files on the fly or is it a Rails limitation? You see I also have used servlets and JSP, it seems there you can add new jars
2008 Jul 07
0
Getting access to route-generating helpers from a migration
Is there any way to get access to a RESTful named route helper from a migration. I''d like to place URLs generated from these routes into a DB table and wanted to manage the static data by using a migration. So I''d like to be able to get at the URL generated by something like "posts_url", for example. Is this doable? Is there some way that I can either include an
2008 Sep 23
1
Help with "No route matches "/MyTest/" with {:method=>:get}"
I just started working with Ruby. Anyways I can''t seem to figure out how to have this message disappear. I was reading a tutorial and based on it, when I type in http://localhost:3000/MyTest/ it should say whatever I have written down on my my_test_controller.rb file. I first ran: ruby script\generate controller MyTest then I edited the my_test_controller.rb file It currently says: