# Viewing some links!

**URL:** <https://www.ruby-forum.com/t/viewing-some-links/107587>\
**Category:** Ruby\
**Created:** [June 23, 2007, 6:55pm UTC](https://www.ruby-forum.com/t/viewing-some-links/107587 "2007-06-23T18:55:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![feduz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/3d9bf3/32.png) [@feduz](https://www.ruby-forum.com/u/feduz)\
**Post date:** [June 23, 2007, 6:55pm UTC](https://www.ruby-forum.com/t/viewing-some-links/107587/1 "2007-06-23T18:55:05Z")

</div>

Hello everyone hope u r doing great… [sorry if i doubled posted this  
ididnt know which is the right place to do so the other post is on RoR  
forum ([http://www.ruby-forum.com/topic/112870#new](http://www.ruby-forum.com/topic/112870#new))]

Im a almost three weeks old in RoR and ive a simple problem which i  
could find an answer for!

Ill tell first a bit about the project im trying to do:

Im making a tool for a Team Leader where he can put tasks for his team  
members, the Team Leader can see all tasks for his own team, but a team  
member can see ONLY his own task, my problem is:

Im using the same view when showing the task it self and so a Team  
Leader would have these links shown (edit, delete.etc) but a team member  
cant delete his task, only can edit the status of it.

Is there a way which i can tell from my controller which links to apear  
or not depending on the User rights? ive really tried to search this out  
a lot but came out empty…

Any help would be appreciated, thanks in advance…

FeDuZ!!

---

<div class="post-metadata">

**Author:** ![feduz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/3d9bf3/32.png) [@feduz](https://www.ruby-forum.com/u/feduz)\
**Post date:** [June 23, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/viewing-some-links/107587/2 "2007-06-23T19:17:01Z")

</div>

I just tried it with a simple if else statment inside the view and it  
works now i wonder if there is a better way than this to do it!!?

FeDuZ!!
