python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
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
Bigdecimal value not converting to Integer value in Rails 4
I am working with my V2 API response on ruby on rails app.
Currently when I hit my app on localhost:3000 it gets all the response as per provided.
One of key is Percentage and its value is 56.3 but I ...
000723-weict
Votes: 0
Answers: 0
Devise + Patreon OAuth in Ruby on Rails
I have implemented the devise+patreon gem in my Rails application without issues. Now, devise requires an email/password by default when creating a User, but Patreon just uses the oauth integration.
I...
Spyros
Votes: 0
Answers: 1
Extracting images from multiple PDF files using hexapdf - hexapdf no such file or directory @ rb_sysopen
I'm in my master thesis and I have to extract images from about 500 pdf files, some people recommended hexapdf to me for this. I was able to install Ruby and hexapdf and now I'm kinda stuck getting th...
El Kraan
Votes: 0
Answers: 1