Displaying 1 result from an estimated 1 matches for "assign_worktrack".
2009 Dec 18
2
Undefined Method error - help request
...Worktracks to
projects. There is no ''Workbench'' table - I created just a controller
for it, based on the ''Cart'' controller in Agile Web Development.
Project and Worktrack have complete scaffolds.
Workbench View code:
<%= button_to "Add Worktrack", assign_worktrack(project) %>
Workbench Controller code:
def assign_worktrack(project_identifier)
project_identifier.worktracks << Worktrack.new(:status => "Not
Started")
project_identifier.save
end
I am struggling with the following:
1. Google-ing true_class_path in almost any context...