All Questions
Tagged with api ruby-on-rails
2,210
questions
0
votes
2
answers
287
views
how save image using faraday
I have author class using active storage.
class Author < ApplicationRecord
has_one_attached :image
end
Here is my faraday connection
conn =...
1
vote
0
answers
249
views
OAuth - "redirect uri mismatch"
I've been battling with this Google Login for a while now(+2 weeks) and pulling my hair because I don't understand what is causing this error for me.
Context: Rails 7 API trying to send a HTTP request ...
0
votes
0
answers
39
views
How to integrate cb-api(career builder) gem in ruby on rails
I am using career builder gem to connect to career builder site through API and want to display the fetched jobs in my rails app. but i am not getting any results. tried to get the response in all ...
1
vote
1
answer
220
views
Omniauth and jwt_authenticatable rails 7 api
I am trying to add to the Rails API the ability to handle social signins through the mobile application, and while adding omniauth, I am having an issue with my JWT and devise that has already been ...
0
votes
1
answer
77
views
Is it possible implements HAML to a Rails Project in API Mode?
How can I connect HAML templates on my controllers?
I am using Rails 7 in API Mode and I want to return one HTML template on my application
P.D: I am including ActionController::Base, because Rails in ...
0
votes
2
answers
97
views
RoR Graphql Types::BaseObject NameError
When making a graphql API request to my rails backend I get the following error in my app/graphql/types/query_type.rb:
Started POST "/graphql" for 127.0.0.1 at 2023-04-06 13:27:07 +0200
...
1
vote
2
answers
953
views
Calling a third party graphql api
I have been trying to understand GraphQl and how it is used by reading articles.
I've seen how to create an api via graphQl, however i havent seen an article which demonstrates how a third party would ...
0
votes
1
answer
834
views
How can I accept bank account payments using Stripe API for ACH payment
The application that i am working on is accepting payments via card. The requiremnt is to acccept payment via bank accounts(ACH payments)
I tried using the payment method option as us_bank_account, ...
0
votes
0
answers
23
views
How do I pass transient secrets, like passwords, between Rails objects?
I am writing a Rails 7 application which has user accounts, and user child objects whose creation should trigger external API calls. These API calls need the clear-text password of the user, but (...
2
votes
1
answer
984
views
How to best secure an API key in an iframe widget
I am developing a Javascript widget which will be embedded on client sites using an Iframe.
The widget code makes an API call to my backend service using an API key. The API key for each different ...
1
vote
2
answers
156
views
Create a nested object through a POST request (RoR)
I am very very new to Ruby on Rails, so sorry, if something is obviosly wrong or stupid :( But as a part of my university project I am supposed to create an app that uses RoR API. Everything was quite ...
0
votes
0
answers
30
views
Access to XMLHttpRequest at 'http://localhost:3000/api/v1/characters' from origin 'http://localhost:3001' has been blocked by CORS policy: [duplicate]
Access to XMLHttpRequest at 'http://localhost:3000/api/v1/characters' from origin 'http://localhost:3001' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the ...
1
vote
0
answers
208
views
Rails don't redirect to Checkout Stripe Page - Cors problem?
I'm trying to implement an integration with the Stripe API, but when I ask Rails to redirect to the checkout URL, the page loads infinitely
This is my code:
/app/controllers/checkout_controller.rb
...
0
votes
1
answer
46
views
Can't access nested JSON Api data: no implicit conversion of String into Integer
Wondering if you could help. I am trying to access all the nested first_names from this API inside of elements:
https://fantasy.premierleague.com/api/bootstrap-static/
Here's my controller code:
def ...
0
votes
1
answer
233
views
how to handle webhook responses sent through API in rails
I am using an API to post request, and i received a response from API, but then this API will continue send POST request to webhook, how can i capture the response from Webhook.
def request_api(number)...