I would like to know how can one change the following get request into much better readability form
http://localhost:3000/search?utf8=✓&destination=Mumbai%2C+Maharashtra%2C+India&guests=1&bedrooms=1
into
http://localhost:3000/search/Mumbai-Maharashtra-India?guests=1&bedrooms=1
small gist of the routes.rb file
resources :search, only: :index
I tried to edit the routes file into something like this
resources :search, only: :index
get 'search/:destination' => 'search#index', as: search
the above works fine when i directly type in the url
but I cant create a form which takes the input from the user and post it in the particular format.
Am sorry but I guess the forum has changed a bit. I can’t set the category to ruby. I dont know why. maybe because my subscription ended?