PDA

View Full Version : Scaffolding Question


rubyonrails-talk
August 31st, 2006, 11:24 PM
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])

More... (http://groups.google.com/group/rubyonrails-talk/msg/c4592f31abff0161)