Hello Everyone,
I have started learning Ruby on Rails Course, but I can't able solve this question.
Basically trying to use a parameter :id to access some constant stuff.
I.e., /:thingy_found_in_database/generic_route/:id where :id is a known constant. I.e.,
scope ':entity_id', constraints: { entity_id: Slug::VALID_REGEX } do resources :slide, controller: :slide, only: [:show], as: :slideend
This cannot find the URL
url_for {:controller=>"slide", :action=>"show", :id=>:story,
:only_path=>true, :entity_id=>"a0692b03-2d1280860e3f"}
Replies