Is it possible to use model associations with an instance method?  For
example, I have:

Class Reminder
  belongs_to :event

#and i want to access the event id within a Reminder instance method:
def find_event_id

  id = Event.find(event_id).user.id
#this works but im wondering if its possible to do something like:

id = this_reminder.event.user.id?

end


--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to