Ruby | Ruby on Rails Answers

Questions: 3

Answers by our Experts: 3

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

i have some doubts regarding OR EQUALS operator in ruby. how does ruby interpreter is implementing it.?
here is sample code
class C
def arr
@num ||= []
end
when we use or equals operator in this circumstance.first call to this method initializes it and added a element thats fine.how does it know when a second call to made to arr is done that array has one elemnt in it..
I am new to rubyonrails and i would like to know from where to start learning. And what source would be more efficient to learn.
I having 2 tables client and group. Between them many to many HABTM relationship exist, which i already define using simple join table.
I having a problem with the Active record query interface . I have to write code for adding client to group and whenever i select any group display all the clients related to this group.
LATEST TUTORIALS
APPROVED BY CLIENTS