You need to check that the user id in your discovered_locations table is either equal to the id of the user in question, or is null. This is easily accomplished with the meta_where gem. Given the following models:
class User < ActiveRecord::Base
has_many :discovered_locations
has_many :loc...
Ignore the || nil thing, that's an artifact.
100 is a UID that doesn't exist, and it still gives me feedback
Any idea about /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/psych.rb:464:in 'initialize': No such file or directory @ rb_sysopen - /home/ubuntu/workspace/config/config.yml (Errno::ENOENT)?
@Undo Ah, that makes sense. I suspect it's also partly the VM's response times, which are disgusting. It seems to be mostly working now though, thanks for your help.
Oh, oops, it doesn't translate to 'alarm'... it translates to 'anxiety'.
> content of this message is inappropriate in the context of a good conversation .
> Most likely, this issue does not correspond to the subject Stack Overflow in Russian, according to the rules described in the online help .
Most likely?
> Try to write more detailed questions. For the answer, explain what you see a problem, as it is to play, you want to get a result, and so on. D. Give an example of the code.
> Clearly not on (this issue has nothing to do with the theme of Stack Overflow in Russian)
Not on what?
lol "Stack Overflow" is translated to "Overflow is the Stack"