Why does the new action make a Target, when a new one is created anyway
for the create action?
def new
@target = Target.new
end
def create
@target = Target.new(params[:target])
Why does the new action make a Target, when a new one is created anyway
for the create action?
def new
@target = Target.new
end
def create
@target = Target.new(params[:target])
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs