I’m used to ruby with params[:type]'when trying to grab ?type=this but is there a way to get page from http://localhost:3000/admin/test/page? Perhaps with a params[0] or something similar? Just need the name of the directory after test..
I’m used to ruby with params[:type]’ when trying to grab ?type=this but is there
Share
request.urland play with ruby to strip everything but the page.Or you can define
admin/test/:idin your routes.rb and manage the id within the controller.