nested-resources
Rails 3 Nested resource routes inherits parent constraints, how to avoid it?
It you define constraint on \"id\" in parent resource: resources :fo开发者_开发百科o, constraints: { :id => /CONST/ } do[详细]
2023-04-10 13:44 分类:问答Testing nested resources with RSpec
I am trying to create tests for nested resources in Rails. The relevant route definition is: resources :communities do[详细]
2023-04-06 10:54 分类:问答Rails nested resources available in another context
I plan on having galleries with nested images, so images belong in a gallery. I would then like images to have a Boolean option to determine whether or not a particular image shows up on the front pag[详细]
2023-04-02 23:28 分类:问答Cancan not loading nested resources as I expect it to
Cancan is working fine when user\'s are logged in. But when a user is a \"guest\" I would like them to be able to see some photos, but not those where the Photo\'s parent Post has a restriction employ[详细]
2023-04-01 20:42 分类:问答REST Complex/Composite/Nested Resources [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po[详细]
2023-03-29 12:22 分类:问答Exposing a Specific Action of a Nested Route
Using this as an example contexted: Post has_many comments Comment belongs_to post I have a route that looks l开发者_如何学Cike:[详细]
2023-03-22 21:20 分类:问答change the URL without changing the resource name
I\'m building a website for a rabbit farmer (let\'s pretend).This man keeps a close eye on his rabbits, and wants them all categorized.So I built him a RabbitCategoriesController, and added this line[详细]
2023-03-22 08:11 分类:问答Rails 3 Nested Resources Edit/Update method - routing error
I need some help with nested resource actions. I have three nested resources: Jobs, Questions and Answers. I am currently only trying to get the edit/update method to work for the questions controller[详细]
2023-03-20 02:01 分类:问答Rails form_for loop with nested resources
I have three resources: Jobs, Questions and Answers. The relationships are: Job has many questions; Question has many Answers.[详细]
2023-03-19 23:56 分类:问答ActiveRecord building for nested resource
(NOTE: Source code here https://github.com/cthielen/dss-evote) I\'ve got a simple voting application. A survey is the set of questions to vote on, a ballot is a per-user instance of their preferences[详细]
2023-03-19 06:58 分类:问答