Ruby on Rails Friday, September 4, 2015

Great !
I already try write this logic but it not works. But when i copy-paste your variant it's work.
So difference is in formating code, i write in one line, you write in three lines.
That's nice for resolving problem, but why it's works in divided style of ruby and not works in one-line style ?
My one-line is <%= Chat.find_by(id: 6).chatusers.each { |chat_user| chat_user.user } %> which about i told.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d4f369fc-70e3-489f-b43c-11c5fb88ece8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment