0
votes
0answers
6 views
Multiple authorization_tokens, Rails RESTful API and Hootsuite
I'm building a crowdfunding website and I have a few questions about it. How can I do those things?
1- The users needs to authenticate using Hootsuite to share a product through their social ...
0
votes
1answer
33 views
Writing to Rails with a JSON API
I've been trying to write to a regular one model rails app from POSTman for a few days now, and can't figure out how to do it, or find any information on how to do it.
My app has a User model with a ...
0
votes
0answers
12 views
rails devise authenticate_user before_filter + allow orgin after_filter
I met a problem I didn't arrive to solve.
I'm developing an API for a mobile app. This API will be "logged in user" accessible only.
The only action that should be publicly accessible is the ...
0
votes
0answers
17 views
PUT request causing logout in Rails app with Devise and CanCan
I've been searching for an answer to this the past couple of days. I'm trying to test my rails apps API with POSTman. Right now I can do a GET request no problem. For example I can go to ...
0
votes
1answer
25 views
Rails API :select DESC
i had a quick question about TmdbMovie.find code
Say i search for :title => "Harry Potter", all i can really do is add a limit to how many it saves, so Say there are 7 Harry Potter movies, and I ...
0
votes
1answer
58 views
Undefined method 'name' for nil:NilClass
I'm getting some kind of nil error; this tells me it's calling nil on 'name', but it does not show me where.
Here are my routes:
# Mobile api
map.namespace :mobile_api do |api|
api.resources ...
0
votes
1answer
16 views
3dCart API integration with rails2
I need to integrate my rails 2 application with 3dCart API. I want to make a request to get number of orders in the store.
to do this, I am following http://api.3dcart.com/cart.asmx?op=getOrderCount
...
0
votes
1answer
8 views
Extract Info from TMDB and save to Rails DB
I have a rails movie app and the movie info that will be featured on the site will be from TMDB.
Using the TMDB-Ruby gem, i can already produce results (info) from a movie, but now i need to know ...
0
votes
0answers
16 views
Ruby on Rails Sunlight Congress Gem
I'm really new to Rails, but I'm loving it so far.
I'm trying to make a website that takes the user's address, and tells the user who his senators and congressional representative is. I'm using the ...
-2
votes
0answers
16 views
Saving of geodata in real time
What way of saving of data and technology, best of all approach, for storage of the current coordinates of the user?
The project is written in rails, and now data simply register in the table postgre ...
1
vote
2answers
64 views
+50
Best Practices - RoR 4 Heroku - Cron to fill database each hour from external API
I have to call externals API to fill my database, hosted on Heroku each hours.
For this purpose, I've a ruby script that get all the data from externals API and output on the stdout. Now, I would ...
0
votes
1answer
21 views
Rails 3 respond_with returning associations
I have a simple Rails 3.2 controller which is consumed as an API with JSON:
module Api
module V1
class ReportsController < Api::V1::ApplicationController
def index
respond_with ...
0
votes
0answers
5 views
Traversing the Amazon Product Advertising API
Does the Amazon Products API allow users to browse their list of categories and subsequently all of the products within a particular category?
I've been looking through their docs and they're ...
0
votes
1answer
10 views
building a ruby conditional to check for nested params
I'm curious in an controller action, how I can do some simple validation of nested params?
def create
# validate incoming post request
errors = Array.new
person = params[:person]
event = ...
0
votes
1answer
24 views
Ruby on Rails Generate Data But Don't Store It
Hi I am new to ruby and so far have only been making simple programs that store data using scaffold so not much programming although I do know ruby I am looking to make a password api but don't want ...
2
votes
0answers
34 views
How to pass “If-Modified-Since” in a http request?
I am getting a collection of books from an external resource. For that i am using a call like
response = book_resource.get_books({headers:{"If-Modified-Since" => last-update-date.httpdate}})
In ...
0
votes
1answer
17 views
API Design for lost password
What's the "best" way to implement lost password functionality in an API? I've split my app into two parts, one API and one client side (js MVC).
How do you do it? I'm also developing mobile apps for ...
0
votes
2answers
33 views
Rails API makes multiple database queries when similar code in Rails console only makes one database query
I wrote a simple Rails API that returns all objects between two dates. In Rails console, the database in queried only once, but the API is causing multiple queries for the same request.
This is the ...
0
votes
0answers
35 views
JSON response from API: Parsing and adding it to a Rails user Record
From a successful response from an API:
_jqjsp({"id":3764383,"name":"promo ...
0
votes
1answer
39 views
How to hide the url we are posting data to through a button
I have the below button in my view.
<%= button_to('On', @userdetail.url + '?value=1', :method => "post", :remote => true, :disable_with => 'loading...') %>
@userdetail.url is a ...
0
votes
1answer
42 views
Ember.js find() with params
I have an Rails API which responds with the following JSON:
/users/1
{
"id": 1,
"email": "[email protected]"
}
/users/1?embed=role,store
{
"id": 1,
"email": "[email protected]"
...
0
votes
0answers
19 views
having issue in configuring server from rails with bigblue button
am developing an app in which am integarating my rails app with bigblue button. I am using bigbluebutton_rails gem. I have installed the gem, then i have done
rails generate ...
0
votes
1answer
50 views
Ruby TMDB API Save a Movie to database
I am using the ruby tmdb gem to find movies from TMDB.
I have my API key set up and I know how to find a movie in the rails console
So Say I run this @movies = TmdbMovie.find(:title => 'The ...
1
vote
0answers
28 views
Object name in rendering JSON
In Rails 4, when rendering an object, for example User, I am getting this:
{ "id" : 4 , "name" : "John" }
While, when using rails-api gem, I am getting this:
{ "user" : { "id" : 4, "name" : "John" ...
0
votes
1answer
12 views
How to extract the response of an HTTP API in rails?
I called an HTTP API and got this as a respone
{"balance":0}
How do I use rails to extract and get just '0'?
stox
FYI I used the curb gem (curl) to call API calls...if that's of any help
0
votes
0answers
29 views
Understanding ruby/rails with api's and caching
I am new to caching and some of the more advanced ruby topics. I am trying to understand a few things regarding a script I wrote. Basically my question is, if I am hitting a general api, lets call it ...
0
votes
1answer
20 views
Sync my website with outlook and gmail calendars
I have a website (written in Ruby&Rails) which enable the users to create alert with content and time stamp (e.g "meeting with my parents on 1/8/2013 14:00PM").
I want to be able to schedule them ...
0
votes
1answer
43 views
Secure API access: best strategy to secure readonly rails api for android client
I have developed a readonly api using ruby on rails, also developed an android client for this api.
What I want is to restrict access to this readonly api.
What is the best possible solution I can ...
-1
votes
0answers
31 views
Use api of booking websites, or extract data from them with a crawler? [closed]
I'm beginning to develop a travel booking site with rails, I would like to know what is best choose between use EAN (Expedia affiliate network) and Booking.com api, or extract data from multiple ...
0
votes
0answers
29 views
Cucumber not working with rest API
our rails application (along with cucumber tests associated with it) make a call/request to an external rest API. The rails server dev environment works fine with this when it is supposed to, but ...