Displaying 1 result from an estimated 1 matches for "task_url".
Did you mean:
base_url
2007 Jul 12
3
Agh, this is annoying. Why is this happening?
...er.id
@task.status = Status.find_by_name(''in progress'')
respond_to do |format|
if @task.save
flash[:notice] = ''Task was successfully created.''
format.html { redirect_to home_url }
format.xml { head :created, :location => task_url(@task) }
else
flash[:error] = @task.errors
format.html { redirect_to home_url }
format.xml { render :xml => @task.errors.to_xml }
end
end
end
So obviously it''s failing with the current_user.id thing. I''m using
restful_authentication....