Displaying 1 result from an estimated 1 matches for "wipinput".
Did you mean:
libinput
2006 May 14
2
Initialize, instance variable....wrong number of arguments!
...questions are:
1. Can anyone see what is wrong with my code?
2. Can anyone please give me some info or point 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(:statu...