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)}\"><div>#{h(event.name)}</div></a>"
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---