Displaying 1 result from an estimated 1 matches for "wipupdate".
Did you mean:
winupdate
2006 May 14
2
Initialize, instance variable....wrong number of arguments!
...t me into the direction of
where I can find info about instance variables, initialization for
newbies like me?
Thanks a lot,
Alex
class AdminController < ApplicationController
...
def wipinput
@job = Job.find(params[:id])
end
def initialize(status)
@status = status
end
def wipupdate
if params[:save] and @status == ''WIP''
@job = Job.find(params[:id])
if @job.update_attributes(params[:job])
@job.update_attribute(:status,"WIP")
flash[:notice] = ''Job was successfully updated.''...