Hello everyone,
I have 3 models that I am trying to link togheter:
resources :projects :shallow => true do
resources :tasks do
resources :notes
end
end
So most of it is working fine, but I can't figure out how to create
links between them. If I try this:
link_to task.name, project_tasks_path(@project, task.id)
I get the following URL:
/projects/2/tasks.3
If I try this:
link_to task.name, project_tasks_path(@project, @tasks)
The error is even more cryptic.
What I want is to have my /projects list all my projects. /projects/1
list all the tasks for that project and link to each specific task. /
projects/1/tasks/2 will display all the notes attached to the tasks,
and link to each note. /projects/1/tasks/2/notes/3 will be a specific
note.
Thanks.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.