Sometimes you need to put a stub on a particular route, but do not want to make a controller for this. In this case use Rack application as a stub:
# config/routes.rb
get "wp-login", to: -> (env) { [200, {}, [""]] }
Sometimes you need to put a stub on a particular route, but do not want to make a controller for this. In this case use Rack application as a stub:
# config/routes.rb
get "wp-login", to: -> (env) { [200, {}, [""]] }
For further actions, you may consider blocking this person and/or reporting abuse
Jonas Scholz -
Prince -
ANIRUDDHA ADAK -
Ashish prajapati -
Top comments (0)