I am looking for the correct type of GET request:
In Route. :
match 'my / render_block /: blockname',: controller = & gt; 'My',: Action => 'Render_block' ,: by = & gt; : Get, blockname = & gt; / \ W + /
When I try:
get : render_block,: blockname = & gt; 'Test'
This error has been reported:
ActionController :: routing error: no root matches {: controller = & gt; "Test" ,: user_id = & gt; 2}
What is the correct marking of the GET request? In the end, the matching definition of this request with this regex seems a little strange to me.
thanks Ron
Comments
Post a Comment