In my routes.rb I have:
resources :countries do
resources :cities
end
But I only want:
new: GET /countries/:id/cities/new
create: POST /countries/:id/cities
And not the 7 actions.
What can I do?
A resource policy is a system rule that specifies resources and actions for a particular access feature. A resource is either a server or file that can be accessed through the system, and an action is to “allow” or “deny” a resource or to perform or not perform a function.
The sts:AssumeRole action is the means by which such temporary credentials are obtained. To use it, a user or application calls this API using some already-obtained credentials, such as a user's fixed access key, and it returns (if permitted) a new set of credentials to act as the role.
The inline policy character limits are 2,048 for users, 10,240 for roles, and 5,120 for groups.
The Action element describes the specific action or actions that will be allowed or denied. Statements must include either an Action or NotAction element. Each AWS service has its own set of actions that describe tasks that you can perform with that service.
Here you go:
resources :cities, :only => [:new, :create]
Reference here.
try
resources :cities, :only => [:new,:create]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With