# Help with events and current\_user

**URL:** <https://www.ruby-forum.com/t/help-with-events-and-current-user/175012>\
**Category:** Rails\
**Created:** [September 5, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/help-with-events-and-current-user/175012 "2009-09-05T19:16:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlittle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@mlittle](https://www.ruby-forum.com/u/mlittle)\
**Post date:** [September 5, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/help-with-events-and-current-user/175012/1 "2009-09-05T19:16:10Z")

</div>

Ok. Here’s my problem. First of all, I’m new to ruby / rails and am  
using the eventcalendar plugin and am having trouble with the  
following:

def event\_calendar  
calendar event\_calendar\_options do |event| # \<— I think this  
is what I have to change?  
“\<a href=’#{user\_path(current\_user)}/events/#{event.id}’ title=  
“#{h(event.name)}”\>

#{h(event.name)}
”  
end  
end

I want to only see the event created by the currently logged in user  
(current\_user), The code above shows all the events. How can I change  
the above to only see events from the current user? I have created the  
appropriate models (has\_many, belongs\_to, etc). thanks in advance
