KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have two models, User Membership The two have the following relationship with one another user has_many :memberships I've been trying to figure out where the build method resides, and how do i get it in a list of methods for the instance. Here is the output of the debugger that shows my delima (rdb:63) @user.memberships.respond_to?"build" true While the following is returning false, shouldnt it return true?? (rdb:63) @user.memberships.instance_methods.include?"build" false
Tags (comma-separated)
Save Edits
Cancel