The :user_id part is called a dynamic segment because the corresponding user ID will be injected into the URL. So, it will look like /users/3/edit, where 3 is the user with the ID of 3. You can define either a route or a resource. Keep in mind that a resource is a group of routes and that it allows routes to be nested. A resource also resets the nested naming convention to the last resource name,