/users/3/links
that should be pretty straightforward. In particular, you don't need
any of the overrides in your controller to achieve that.
There might be a little extra confusion in naming your nested resource
UserLinks. I would just call this Links. The fact that they belong to
users is handled automatically by the nesting. Then, your route would be
map.resources :users, :has_many => :links
Try "rake routes" from the command line now and then try it with the
above route and see the difference in the routes you are generating. I
have several resources with paths like this in my current app and the
controllers are pretty much empty. In particular, you should not need
to override model_name, route_name, and object_name like this. Also,
make sure your associations are setup properly in your user and link
models and you should not need to define parent_association either.
- Mark