Quantcast
Channel: Dave Copeland :ruby:
Viewing all articles
Browse latest Browse all 642

Article 1

$
0
0

Anyone remember when “redirect after HTTP post” was considered a best practice?

Consider standard Rails form handling, which doesn't do this:

if @model.invalid?
render :edit
else
redirect_to model_path(@model)
end

In the error case, reloading is convenient for dev, but problematic for users (they shouldn't have to decide to resubmit the request).

BUT, if you redirect after POST, when there are errors, how does all that get to the next page? [1/?]


Viewing all articles
Browse latest Browse all 642

Trending Articles


EASY COME, EASY GO


UPDATE SC IDOL: TWO BECOME ONE


Pokemon para colorear


Sapos para colorear


tagalog love Quotes – Tiwala Quotes


OFW quotes : Pinoy Tagalog Quotes


Tropa Quotes


“Mali man na ikaw ay ibigin ko, akoy iibig padin sayo”


RE: Mutton Pies (frankie241)


Vimeo 10.7.0 by Vimeo.com, Inc.


FORECLOSURE OF REAL ESTATE MORTGAGE


HOY PANGIT, MAGBAYAD KA!


Girasoles para colorear


Presence Quotes – Positive Quotes


Love Quotes Tagalog


Long Distance Relationship Tagalog Love Quotes


“BAHAY KUBO HUGOT”


Re:Mutton Pies (lleechef)


Ka longiing longsem kaba skhem bad kaba khlain ka pynlong kein ia ka...


Vimeo 10.7.1 by Vimeo.com, Inc.