Home How do I check if URL path strictly?
Reply: 0

How do I check if URL path strictly?

user231
1#
user231 Published in May 22, 2018, 12:27 am

In my controller method

I want to know if the URL path is /404 but not /task/id/95404

  redirect_url = request.original_fullpath.include?("404") ? root_path : request.original_url
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.318753 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO