Rails: using nested named routes
routes.rb:

    resources :jobs do
      resources :activitylogs
    end

rake routes:

    ...
                         POST /jobs/:job_id/activitylogs(.:format)          {:controller=>"activitylogs", :action=>"create"}
    new_job_activitylog  GET  /jobs/:job_id/activitylogs/new(.:format)      {:controller=>"activitylogs", :action=>"new"}
    edit_job_activitylog GET  /jobs/:job_id/activitylogs/:id/edit(.:format) {:controller=>"activitylogs", :action=>"edit"}
    ...

How do I use the route `new_job_activitylog`?

Doing `<%= new_job_activitylog %>` gives undefined exception - so does using `link_to` which most of the examples I see are using.


Rails: using nested named routes
===

routes.rb:

    resources :jobs do
      resources :activitylogs
    end

rake routes:

    ...
                         POST /jobs/:job_id/activitylogs(.:format)          {:controller=>"activitylogs", :action=>"create"}
    new_job_activitylog  GET  /jobs/:job_id/activitylogs/new(.:format)      {:controller=>"activitylogs", :action=>"new"}
    edit_job_activitylog GET  /jobs/:job_id/activitylogs/:id/edit(.:format) {:controller=>"activitylogs", :action=>"edit"}
    ...

How do I use the route `new_job_activitylog`?

Doing `<%= new_job_activitylog %>` gives undefined exception - so does using `link_to` which most of the examples I see are using.

