rails-routing
Restricting routes to nested resources in Rails
I am trying to create nested resources where the sub-resource doesn\'t have an existence of its own.e.g., an Address resource which is linked to a Person.[详细]
2023-01-07 00:20 分类:问答what is the equivalent in rails3 routes?
I have used this route in rails 2.3.5 - basically, I wanted to be able to parametrize my controller that I se开发者_Go百科nd to the named route.[详细]
2023-01-05 14:11 分类:问答map.resources with alternate primary key(s)
I have a Rails model Object that does not have an ID column. It instead uses a tuple of primary keys from two other models as its primary key, dependency_id and user_id.[详细]
2023-01-05 07:38 分类:问答Creating an Admin directory in Rails
I\'ve been developing the CMS backend for a website for a few weeks now. The idea is to craft everything in the backend first so that it can manage the database and information that will be displayed[详细]
2023-01-01 20:43 分类:问答RoR routing problem. Calling custom action, but getting redirected to show action
I am working on a project in ruby on rails and I am having a very difficult time with a basic problem. I am trying to 开发者_运维百科call a custom action in one of my controllers, but the request is s[详细]
2022-12-19 19:38 分类:问答How can I redirect requests from Rails to a PHP subdomain?
I have a site, say, example.com, which is PHP. I am converting it to Rails, but there are three years worth of issues (like magazine issues) that I don\'t want to update. Thankfully, it seems that I c[详细]
2022-12-17 18:25 分类:问答Complex Rails Routing
I would like to do something like github has with nested urls, and like How do I route user profile URLs to skip the controller? but not really sure how to go on with it.[详细]
2022-12-16 01:32 分类:问答Accessing a resource in routes.rb by using attributes other than Id
I have the following in my routes.rb map.resources :novels do |novel| novel.resources :chapters end With the above defined route, I can access the chapters by using xxxxx.com/novels/:id/chapters/:i[详细]
2022-12-12 23:37 分类:问答