Skip to content

Commit

Permalink
Refactored to get our scenarios passing.
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed May 30, 2010
1 parent 95af1af commit 3b755db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/controllers/parking_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ def tickets

def create
@resource = Resource.new(params[:resource])
if @resource.save
redirect_to parking_index_path
respond_to do |format|
if @resource.save
format.html { redirect_to parking_index_path }
else
format.html { render :action => "new" }
end
end
end

Expand Down

0 comments on commit 3b755db

Please sign in to comment.