search for: tasks_controller

Displaying 4 results from an estimated 4 matches for "tasks_controller".

Did you mean: task_controller
2006 Mar 21
3
Newbie - ActiveRecord relationships
So I''ve worked through Agile Web Development with Rails and I''m now trying my first little app to get into the swing of things. Its a task tracking app where people can create tasks and assign them to others, and also log time against the tasks. I''m having trouble working out the model relationships. This is what I''ve got so far, but its not right as
2007 Dec 18
0
REST and custom routes
...s test cd test script/generate scaffold Task body:string completed:boolean rake db:create rake db:migrate #routes.rb map.resources :tasks, :member => {:complete => :post} map.connect '':controller/:action/:id'' map.connect '':controller/:action/:id.:format'' #tasks_controller.rb def complete @task = Task.find(params[:id]) @task.completed = true end #index.html.erb <td><%=h task.body %></td> <td><%=h task.completed %></td> <td><%= link_to ''Show'', task %></td> <td><%= link_to ''E...
2008 Apr 23
0
self referential (n-n relationship) belongs many controller
...the tasks in a kind of auto join in nn relationship (1-n can be easily solved with act_as_tree) so ... <b>THE PROBLEM :</b> I ve my problem in the create and update of task controller : rows in table links are not created (or badly : task_id is ok, but tasklink_id is KO) Here is my tasks_controller : ------------------------------------------------------------------------------------- class TasksController < ApplicationController helper :sorting def index list @statuts=Statut.find_all render :action => ''list'' end # GETs should be s...
2007 Jun 22
2
problem with AR and 'virtual' multiparameter attributes.
Hello, I have a model which I would like to have a ''virtual'' date column. This column wouldn''t exist in the database, but would exist for validation, etc. The data would be provided in the form of a date_select in the view. This produces a multiparameter attribute. My problem is that the ''execute_callstack_for_multiparameter_attributes'' method in