python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Rails find record with join table and pluck single column
I have a many to many relationship:
Player
has_many :team_players
has_many :teams, through: :team_players
Team
has_many :team_players
has_many :players, through: :team_players
TeamPlayer
...
Abdul Ahmad
Votes: 0
Answers: 1
Can't connect to actioncable socket and no error and rejection - what can I do?
Some users are unable to connect to my socket and I have no idea why. I don't see any errors but I do see that they never actually connect. What can be the cause of this and what should I do? I am usi...

John
Votes: 0
Answers: 0
In Rails 4, how do I reference an enum value when initializing my model?
I’m using Rails 4.2. It is not an option to upgrade at this time. I have this model
class OrderItem < ApplicationRecord
…
enum type: { data: “Data”, product: “Product” }
How do I initializ...
Dave
Votes: 0
Answers: 2
Issue with sending a POST request from Rails to Local Webservice
I am trying to send a POST request to a Web Service. The curl command I am using is:
curl --silent --header 'Accept: application/json' --header 'Content-Type: application/json' --data
'{"mwtype&...
Logan X.
Votes: 0
Answers: 1