Would like to pass some parameters to the _path for link_to or redirect_to. For example, link_to 'show', customers_show_path(params[:id]) will show the customer with id=params[:id].
What do I do if I want to pass another parameter such as session[:user_id] into the show? Does link_to 'show', customers_show_path(params[:id], :user_id => session[:user_id]) work (retrieve session[:user_id] with params[:user_id] in show)?
Any suggestions?