Return 20 items which are instance of human which have a twitter account:
SELECT ?item ?twitter
?item wdt:P31 wd:Q5 .
?item wdt:P2002 ?twitter .
} LIMIT 20
Or all Nobel Peace laureates:
Read the rest of this entry »
redirect_back in Rails 5 is handy:
fallback_location is used when HTTP_REFERER is not present.
In Rails 4 we had to use redirect_to :back and rescue
class MyController < ApplicationController rescue_from ActionController::RedirectBackError, with: :redirect_to_default def action redirect_to :back end private def redirect_to_default redirect_to root_path end end