activeresource Questions

6

Solved

I'm trying to get activeresource (on Rails 3.2) working with the Freebase API and I haven't had much luck yet. How can I debug rails to see what's going on and make sure the request is well formed?...
Bendwise asked 5/3, 2012 at 19:37

4

Solved

I have a Rails application that has a Company resource with a nested resource Employee. I'm using shallow routing, so to manipulate Employee, my routes are: GET /employees/1 PUT /employees/1 DELET...
Superstar asked 20/5, 2009 at 18:51

3

Solved

Rails ActiveResource is awesome ... except for one thing: as far as I can tell, there is no way to see what URL it is using behind the scenes. For instance, let's say I have an ActiveResource calle...
Kiser asked 8/9, 2010 at 1:19

1

Solved

We have 2 Models: Valuation and Document. Both are in a microservice so we use ActiveResource to access them. class Valuation < ActiveResource::Base self.site = "#{config.valuation_service.bas...
Songsongbird asked 5/4, 2018 at 6:15

2

Solved

Active Resource can make use of HTTP authentication set at the class level. For instance: class Resource < ActiveResource::Base end Resource.user = 'user' Resource.password = 'password' or ...

4

Solved

What I am missing? I am trying to use a rest service for with Active resource, I have the following: class User < ActiveResource::Base self.site = "http://localhost:3000/" self.element_name =...
Armorial asked 5/9, 2011 at 9:11

7

Solved

I have 2 RESTful Rails apps I'm trying to make talk to each other. Both are written in Rails 3 (beta3 at the moment). The requests to the service will require the use an api key which is just a par...
Fraunhofer asked 27/5, 2010 at 4:16

2

Solved

I am trying to grab data from a third-party library that has an API that looks like: https://foo.com/user.json?username=<USERNAME> I can't figure out how to force ActiveResource to use "use...
Argillite asked 26/9, 2012 at 18:9

3

Solved

I noticed that in the Shopify API documentation, they mention the possibility to retrieve multiple orders in a single call using "A comma-separated list of order ids" as a parameter called "ids". ...

1

Solved

Using cached_resource gem for caching active resources. User model class User < ActiveResource::Base cached_resource class teachers < SimpleDelegator attr_accessor :teacher_id def in...
Phthalocyanine asked 8/7, 2015 at 11:30

6

Solved

At ShowNearby we have been doing a very big migration to RoR 3.1 from PHP and we are facing several problems that may be some of you have solved before. We have big amounts of data and we decided...

2

Solved

I have upgraded from Rails 3.2 to Rails 4 by following the Ruby Screencast guide. My tests are running and the server starts, yet I receive an error when I send a request: ERROR NoMethodError: und...
Diptych asked 11/8, 2013 at 20:39

3

Solved

Is there anyone who can help me by defining the exact difference between Active Model, Active Record and Active Resource. I have done enough googling in order to find the exact difference, but didn...

8

Solved

I am trying to debug an ActiveResource call that is not working. How can I view the HTTP response to the request ActiveResource is making?
Odeliaodelinda asked 22/10, 2008 at 23:31

2

I have a local user model which uses activerecord. The user has an email field. I also have an activeresource model called tasks which has a created_by field which stores the submitting users email...

2

Several developers from different teams have independently told me that ActiveResource was a flawed idea. The most common criticism I hear is that it was a mistake to design it to have an ActiveRec...
Emarie asked 28/5, 2012 at 23:46

1

Solved

I have problem with creating a form for my ActiveResource models but I can't seem to find a solution. The problem is that the model does not know the fields, and throws an error when I try to creat...
Control asked 10/4, 2014 at 16:50

2

Solved

I have an Active Resource model that needs to set a header before posting/putting through save and update_attributes. The issue is that the header value needs to be different for each user, so it c...
Janniejanos asked 12/12, 2012 at 23:57

3

Solved

I have been searching for a while and yet I am not able to find a satisfactory answer as yet. I have two apps. FrontApp and BackApp. FrontApp has an active-resource which mimics a model in BackApp....

3

Solved

I am looking at using ActiveResource but is now facing a problem that I am unable to figure out myself (was searching the net for a couple of days for the solution by now). So I have an authentica...
Guarneri asked 1/9, 2013 at 20:38

4

Solved

I am trying to use ActiveResource to consume xml data from a third party API. I can use the RESTClient app to successfully authenticate and make requests. I coded my app and when I make a request I...
Gaillard asked 21/7, 2010 at 15:37

2

ActiveRecord introduced a change to its default JSON output format. It went from { "user": { some_junk } } to { some_junk } ActiveResource has apparently followed their lead, expecting to con...
Iselaisenberg asked 5/5, 2009 at 20:6

2

I am using active resource to get data from an api and display it, My controller model.rb has class Thr::Vol::Dom < ActiveResource::Base class << self def element_path(id, prefix_option...
Adsorbate asked 29/6, 2013 at 0:11

2

Solved

I have been looking at this for a while, and am currently at a loss. I have narrowed the problem down to being related to JSON, and that the JSON does not appear to be being sent in a legible forma...
Jobholder asked 23/5, 2012 at 21:8

1

So I have an application that earlier did not need ActiveRecord - thus we removed ActiveRecord from the application and formatted our logging as such: In application.rb: class DreamLogFormatter &...

© 2022 - 2024 — McMap. All rights reserved.