Advertisement
Guest User

rails controller

a guest
Nov 28th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def show
  2. @project = current_user.company.projects.find_by_navigation_id(params[:id])
  3. respond_with [@project]
  4. end
  5.  
  6. <p>
  7. <strong>Title:</strong>
  8. <%= @project.name %>
  9.  
  10. <%= @project.id %>
  11. </p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement