Guest User

Untitled

a guest
Feb 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #for some reason i can't use the same if statement to print both links... suggestions?
  2. #and i want to print the > based on the same if
  3.  
  4.  
  5. <%= if @project
  6. link_to "Author " + @project.author.to_s, :controller => "display", :action => "index"
  7. end %>
  8. >
  9. <%= if @project
  10. link_to @project.title, :controller => "display", :action => "project", :id => @project.id
  11. end %>
Add Comment
Please, Sign In to add comment