Displaying 20 results from an estimated 300 matches similar to: "403 Error Dont know whats wrong."
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 --
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:
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]" >
2007 Nov 08
0
Models for external REST services
Hello, I''m new to rails so as an exercise I''m porting (php to rails)
a very simple landing page that talks with a third party REST service
where I just need to do a couple of calls to register a user and show
the status of the whole process. I felt this would be dead simple to
do in Rails (I''m still learning) but I''m having a hard time getting it
working.
My
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
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
2014 Apr 17
0
RestClient::ResourceNotFound in UsersController#index
Hi,
I am trying to implement Rest Api for a sample application for learning
purpose. But when I try to make a "GET" request through the RestClient it
is showing error as
RestClient::ResourceNotFound in UsersController#index
def index
uri = "#{API_BASE_URL}/users.json" # specifying json format in the URl
rest_resource = RestClient::Resource.new(uri, USERNAME,
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"
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
2012 Dec 04
0
Empty test suite is run after every rake task
When I run rake db:migrate or rake -T I get these lines at the end:
Finished in 0.000276 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
My Gemfile is:
source ''http://rubygems.org''
gem ''rack''
gem ''rails'', ''3.0.9''
gem "acl9", ''0.12.0''
gem "fastercsv"#, :version =>
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 =>
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
2018 Jan 24
2
Issue with concatenation of URL losing
Thank you for your help in advance.
I am trying to pull some data back from a web service
library(httr)
sample2 <- GET("https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":40.7,\"lon\":-76.5}]}&api_key=mycode")
result2 <- content(sample2)
height <- result2$height[[1]]
I would like to put by own latitude
2018 Jan 24
0
Issue with concatenation of URL losing
a) you need to read the help pages on the paste function... more likely
you are looking for the paste0 function because extra spaces will most
likely break the GET request format.
b) quotes do not become "stuck" as \" ... that is a visual representation
intended to clarify that that quote is not terminating the string but is
actually part of it. If you want to see the contents
2018 Jan 19
5
API de AEMET con R?
Desde el terminal de Ubuntu, he conseguido descargar los datos usando esto:
DESCARGAR LISTA DE ESTACIONES
wget --method GET --header 'cache-control: no-cache' --no-check-certificate
--output-document -
https://opendata.aemet.es/opendata/api/valores/climatologicos/inventarioestaciones/todasestaciones/?api_key=*vuestra
api key*
DESCARGAR DATOS HISTÓRICOS
Diciembre 2017, ALICANTE
wget
2008 Mar 27
0
handling post-remove URL / uninstall of application
Hi there,
I''ve configured my post-remove URL (which has to be directly to my
site, not an apps.facebook.com URL) and now I''m trying to figure out
how to handle this. It''s poorly documented here:
http://wiki.developers.facebook.com/index.php/Post-Remove_URL
It seems as though support for this is currently not yet in
Facebooker. In order to get it to work, it
2023 Jun 07
1
Listen to ARI events
I tried the command below (with subscribeAll=yes). I made a couple of calls but didn’t see any events. Should I see events?
From: asterisk-users [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joshua C. Colp
Sent: Tuesday, June 6, 2023 6:31 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>
Subject: Re: [asterisk-users]
2006 Jul 20
2
Authentication & Authorisation - Whats the common approach?
Hi,
Just wondering what the most popular approach is for authentication and
authorisation in a rails application that is deployed and fronted by
apache? Also when there are say a couple of rails apps being hosted.
Authentication
==============
[1] Options would seem to include:
* Do it within rails/your app? Use of a "before_filter" per the Rails
Recipes book
* Use of Apache to
2006 Apr 11
1
Whats the big deal with UTF-8?
Hi,
could someone please explain what the significance/importance of UTF-8
is, and why you would need it in an application?
I''ve done a lot of web developing and i''ve never needed to know what it
is. I hope i''ve not been missing something very important!!
Thanks,
Chris
--
Posted via http://www.ruby-forum.com/.
2005 Mar 17
1
no patch whats going on
it was said:
>>On Fri, Mar 18, 2005 at 08:52:30AM +1000, Timothy Smith wrote:
>> http://www.securityfocus.com/bid/12825/info/
>
>That URL doesn't seem to have any details.
>
>> openbsd and netbsd have taken action on this, but i see no
>>movment in
>> the freebsd camp....
>
>Well, you wouldn't, on the freebsd-questions list. Security