How can I pass parameters to my current_user redirect?
if(user_id = session[:user_id])
@current_user ||= User.find(user_id)
@current_user = nil
redirect_to current_user, param1: "bubbles"
resources :doctors, :admins, :agencies # this is the line that handles current_user path
Such as resulting URL would be like foo.com/?param1='bubbles'. The confusing thing here is, I use STI for different types of users, so every user type has its own 'show' url, so a approach like this
redirect_to controller: 'thing', action: 'edit', id: 3, something: 'else'
would not work, since every user type has its own controller.