custom-routes
rails routing aliases
I have a model called Spaces which has different types of places... such as Bars, Restaurants, etc.It has the same columns, same, model, controller, etc. no fancy STI, I just have one field called Spa[详细]
2023-02-24 19:57 分类:问答Replacing default routes for a resource in Rails 3
I have a resource defined like so: resources :referrals, :except => [:show, :edit, :destroy] and I\'d like to replace (not just add a named route) a default route that Rails produces, specifical[详细]
2023-02-20 16:37 分类:问答"No route matches" error in Rails 3 when invoking own controller method from view (POST)
Rails champions I\'ve been programming with Ruby and Rails 2.x for quite a while and while I\'m certainly not proficient in Rails, I\'d still say that I had a nice grasp of the framework and the tool[详细]
2023-02-18 22:36 分类:问答Rails Routing Question - "No route matches..."
I\'ve got a model \"Job\" which i\'m adding a new action \"preview\" to.In order to support this new action, i\'ve modifed routes.rb as follows:[详细]
2023-02-14 23:51 分类:问答Creating SEO friendly URLs in Rails 3
I currently have URLs which look like this: things?category_id=6&country_id=1开发者_开发问答7[详细]
2023-02-10 16:06 分类:问答rails 3 routing question (Routing Error "No route matches …")
I\'m using ruby 1.9.2 and rails 3 and I think I\'m having a moderately simple problem with routing. I have a model called AdvancedQuery.[详细]
2023-02-07 12:04 分类:问答ASP.NET MVC catch the rest of the route url
I would like to learn how do I make a \"catch the rest\" route in ASP.NET MVC? I need to take formated urls, read some data to it\'s values, and take the remainder of the link and SAVE it to some vari[详细]
2023-02-06 21:59 分类:问答pseudo-complex routes in rails 3
I\'m trying to make some nice simple routes in Rails 3 with 2 custom matchers which assume the root :id will be a city and :city_id/:id will be a place... it seems to work fine except when trying to e[详细]
2023-02-05 03:27 分类:问答Rails 3 - Made a new controller action and view but cant route it
I\'m using Rails 3 I have a controller called subscriber_controller.rb I just added an action called \"def houston\" and added this to my routes file[详细]
2023-02-03 21:32 分类:问答RoR custom routing/Method/View problem all methods come back as undefined
I am playing with custom view and routes.I think that I have everything right but obviously not.Essentially I tried to copy the show method and show.html.erb but for some reason it will not work.[详细]
2023-02-02 11:30 分类:问答