similar to: RestClient::ResourceNotFound in UsersController#index

Displaying 18 results from an estimated 18 matches similar to: "RestClient::ResourceNotFound in UsersController#index"

2011 Jul 13
0
RestClient posting multipart issue - RestClient::Found Exception: 302 Found
I thought I found how to post a file to my controller for PaperClip attachment processing , but I am stuck with the the RestClient processing I am creating the file from the email attachment : file = StringIO.new(part.decoded) file.class.class_eval { attr_accessor :original_filename, :content_type } file.original_filename = part.filename file.content_type = part.mime_type # then adding some
2011 May 06
3
RestClient send method?
Hey all, I see this line of code: RestClient.send(verb, url, parameters) Basically there''s two rails application that communicate with each other. RestClient is a rails gem. Here we send the get http verb and a url string comprising of the other application base url and append a query string to it consisting of the new user email that is being created. So if the arguments are these:
2009 Oct 04
2
no such file to load -- restClient (MissingSourceFile) HELP
i don''t get what is going on here. if i run the restclient command that starts an irb with restclient it works fine but when i try to load it from environment.rb with require ''rest_client'' this is what i get... it''s driving me batty. /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'': no such file to load --
2006 Feb 09
0
Need help with REST using Rails
I am using the rest_resource.rb file available from the article: http://www.xml.com/pub/a/2005/11/02/rest-on-rails.html?page=1 This script provides a method respond to a post request that sends an XML to the server to update the database. It also responds to a get request with a response containing an XML with data from the database. I would like to use this between two processes, to
2011 Oct 07
1
403 Error Dont know whats wrong.
Hi, I am quite new to ruby and am programming an application to send sms using rest_client gem. I so far have code on one of my modules which tries to send an sms to a number. It gives the 403 error - RestClient::Forbidden in SMSController#index 403 Forbidden Rails.root: /Users/user1/Desktop/rails_projects/sms_app My code in the module looks as follows - before adding this code i had a simple
2010 Jun 09
4
rails+sinatra sent image
Hi! I have simple rails application - users with name and avatar and in sinatra I want to create new user. form for new user <form action="/users/create" enctype="multipart/form-data" method="post"> <p> <label for="name">Name: </label> <input type="text" id="name" name="user[name]" >
2012 Mar 28
0
Performance for SOAP and HTTP
Hi everyone, I hope someone can help me with the following problem. I want to issue SOAP request from rails to connect to a legacy system in the backend. First I tried savon as a SOAP client. Everything worked fine, but the performance was bad. The following code client = Savon::Client.new client.http.headers["Content-Type"] = "application/soap+xml; charset=utf-8"
2012 Mar 06
2
rails login page with basic authorization
i have 2 portal, one and two. The portal one have all apis, and the portal Two have the interfaces, Here just i am doing enter the username and password in the login page so that will go the method of Portal Two. Then it will pass the username and password of a method of Portal One, this is am doing here. My question is how to do the basic authorization for encrypt the username and password
2007 Aug 27
0
Want to Move RestfulAuthentication's UsersController to Admin::UsersController
I''m trying to move RestfulAuthentication''s UsersController to an Admin module--Admin::UsersController--as I''m also adding roles and permissions for an app I''m building. I would like this all to be within a single user interface with a standard security level required for all these pieces as defined in Admin::BaseController. So far, I''ve been able to
2014 Mar 24
0
"class Admin::UsersController < ApplicationController". What does the double colon do here?
I saw this on a Gem implementation and don't understand why it needed "::UsersController" at all. My understanding that it is trying to find the relative path of UsersController, but why is it necessary to be there? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving
2010 Jul 13
1
NoMethodError in UsersController#show
So I am getting the error NoMethodError in UsersController#show error undefined method `feed'' for nil:NilClass {"authenticity_token"=>"zalkdfsjfksjd;lfs;lfksdkf/2tPzo=", "login"=>"session", "password"=>"admin", "commit"=>"Log in"} Why is login being set to "session"? Instead of the
2011 Feb 14
0
Overiding routes in rails3
I have typus and devise almost integrated. However I''m trying to overwrite the "Sign out" link with typus and redirect it to devise/sessions#destroy ---------------------- config/routes.rb ---------------------- 65 # Override typus TODO this does not work 66 delete "/admin/session(.:format)" => ''devise/sessions#destroy'', :as =>
2012 Jun 09
7
ActiveRecord::AssociationTypeMismatch in UsersController#update
Hi Im trying to link my User model to a Teams model. I seem to be getting the following errors. Any help would be great as Im just new to RoR Thanks error ActiveRecord::AssociationTypeMismatch in UsersController#update Team(#2183395560) expected, got String(#2174675960) app/controllers/users_controller.rb:67:in `update'' app/controllers/users_controller.rb:66:in `update''
2010 Feb 25
9
uninitialized constant UsersController::User
i just created an application to list the primary details of userbut it is showing an error lik this "uninitialized constant UsersController::User" this is my controlller class UsersController < ApplicationController puts"hiiiiiiiii" def index puts"hiiiiiiiii" @users = User.find(:all) puts @users respond_to do |format| format.html # index.html.erb
2008 Oct 09
0
How to consume a nested singular resource?
Hi, We have a RESTful server application which exposes the following routes using the following rules, but when trying to consume those resources from a client application the routes are not generated correctly. And we are not sure how to get around that. The routes.rb specifies the following resources: ActionController::Routing::Routes.draw do |map| map.resources :users do |user|
2019 May 08
6
Firefox esr repackage
Hi everyone, I use firefox on centos 7 at work but due to the fairly well know extension signing problem, I cannot use ublock origin. From what I can tell, the latest version of firefox in the updates repository is 60.6.1-1.el7. It looks like Mozilla have just released firefox esr 60.6.2 which should fix the signing issue. (see https://www.mozilla.org/en-US/firefox/60.6.2/releasenotes/) Would it
2011 Apr 20
1
Omniauth facebook authentication failure
I am using devise and omniauth for authentication. Wherever i click on the facebook login button i get this warning msg. ****************************************** warning: peer certificate won''t be verified in this SSL session ****************************************** But now i get this error msg ***************************************** OpenSSL::SSL::SSLError SSL_connect returned=1
2015 Jun 22
5
EFI: PXE: "My IP is 0.0.0.0"
Hello Gene, thanks a lot for your patch! It doesn't work yet, but I have some more information. Before the patch, the boot sequence ended with the following: NBP file download successfully. Getting cached packet My IP is 0.0.0.0 After the patch it ended with the following (note that the IP is the same as the Station IP address): NBP file download successfully. LibLocateHandle returned