Help with events and current_user

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs