request.fullpath with no parameters

Use path instead of fullpath.

Although not documented, request.path worked for me. I usually use my plugin rails_web_console for playing with the request object.

Update:

As noticed by turboladen, “[ActionDispatch::Request][2] inherits from [Rack::Request‌][3]​, where request.path is defined”.

path is not documented there, but the source displays script_name + path_info.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)