How to change URLs in rails

I have developed a rails application but there is some problem like as I
used one more words URL with capital letters now I want to use ‘-’
instead of capital letters.

For example, I used http://localhost:3000/viewDetails now I want to use
http://localhost:3000/view-details this type.

Anyone can help me, please how can I do this?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs