Rails 3 - How to Link to a User given a user_id -


I'm outputting comments on / books / 1

I have the following:

  & lt;% = comment.user.id%> ---- This returns the correct user_id  

What do I want to do:

   

I do not know what to do XXXXXXXXXXXXXX which is linked to / users / 1 1, the comment has an ID. User.id

Thoughts?

  & lt;% = link_to comment.user.fname, comment.user% & gt; ;  

You should do what you want.


Comments