Guest User

Untitled

a guest
Jun 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #currently you are doing this (effectively)
  2. a = {:action => "list", :notice => "yay"}
  3. redirect_to a
  4. #you want to be doing this
  5. a = {:action => "list"}
  6. b = {:notice => "yay"}
  7. redirect_to a, b
  8.  
  9. #which you can do by explicitly adding the braces around the URL stuff, like so
  10. redirect_to {:action => "list"}, :notice => "yay"
Add Comment
Please, Sign In to add comment