class AssigneesController < ApplicationController
def assignees
Assignee.class_eval %Q{
def assignee_name
self["#{params[:assignee_by]}"]
end
}
end
def do_assignee_cleaning
Assignee.assignee_name
redirect_to
assignee_cleaning_project_assignees_path(params[:project_id])
end
end
I want to use assignee_name method in do_assignee_cleaning action but i am
getting error undefined
method `assignee_name' for class `Assignee' in do_assignee_cleaning
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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-talk?hl=en.