If you’re using mass assignment, you can keep a single, simple create method and then each form can just send through more parameters (make sure all the fields for the detailed version are optional in your model)
def create
task = Task.new(params[:task])
if task.save
#success
else
#failed
end
end
Then both of these could work
post :create, :task => {:title => ‘Test’}
and
post :create, :task => {:title => ‘Test’, :location => ‘Here’, :due => Time.now}
Andrew Timberlake
http://ramblingsonrails.com
http://www.linkedin.com/in/andrewtimberlake
“I have never let my schooling interfere with my education” - Mark Twain