07-19-2023, 01:19 AM
I have some routes looking like this :
match 'hotels/:action(/:id)', :controller => 'hotel', :action => /[a-z]+/i, :id => /[0-9]+/i
And i want to use something like **hotels_dislike_path** somewhere in my code which refers to /hotels/dislike
How can i do that?
match 'hotels/:action(/:id)', :controller => 'hotel', :action => /[a-z]+/i, :id => /[0-9]+/i
And i want to use something like **hotels_dislike_path** somewhere in my code which refers to /hotels/dislike
How can i do that?