Guest User

Untitled

a guest
Apr 25th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. ##application_helper.rb
  2.  
  3. # Try this, and see if it works in cases where there is a user and where there isn't one.
  4.  
  5. def user_link(text, options)
  6. options[action] ||= "show"
  7. link_to( text, options)
  8. end
Add Comment
Please, Sign In to add comment