Displaying 20 results from an estimated 40000 matches similar to: "undefined method `use_ssl='' for #<Net::HTTP"
2007 Apr 17
0
rflickr: invalid auth token when uploading
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, I''m working on an application which uses rflickr to upload images to
flickr. I''ve generated and cached an auth token as described in the
GETTING STARTED document in the rflickr tree. However, when I call the
API, I receive an error stating "ERR: Invalid auth token (98)". The
extended error is:
XMLRPC::FaultException
2013 Mar 04
2
accepts_nested_attributes: undefined method 'association'_attributes
I have 2 models Timesheet and TimeEntry:
class Timesheet < ActiveRecord::Base
attr_accessible :status, :user_id, :time_entries_attributes
has_many :time_entries, dependent: :destroy
accepts_nested_attributes_for :time_entries, :reject_if => proc {
|attributes| attributes[''worktime''].blank? }
end
class TimeEntry < ActiveRecord::Base
attr_accessible :task_id,
2006 Aug 02
0
Errno::ENXIO (Device not configured) when using net/https from rails
Cross posting this to the rails list in case it might be rails
specific. I really have no clue on this one. OS is Freebsd 6.1.
I have the following code that creates a https connection from within
a rails controller. Works fine except that if it doesn''t get called
for a few hours it starts throwing an exception until I restart rails
(apache1.3 + scgi). I wonder if something here
2006 May 03
1
nil.strip error While trying to post xml data over https.
I am trying to subit some xml data over https to access an API. My code
so far seems to generate a very non-helpful error in the guts of the
net/http library. This code produces a NoMethodError for nil.strip"
require ''net/http''
require ''net/https''
require ''uri''
url =
2006 Apr 06
2
OpenSSL: SSL_CTX_new:: library has no ciphers
I''m trying to do a basic get or post operation using Net::HTTP in SSL mode.
I''m on TextDrive, which runs ruby 1.8.2; however, I have the /net folder
from ruby 1.8.4 in my /lib to support net/https, which doesn''t appear to be
present in 1.8.2.
http = Net::HTTP.new "www.beanstream.com", 443
http.use_ssl = true
http.start {
2010 Apr 30
3
undefined method `call' for nil:NilClass
why would I be getting this error after submitting my form?
NoMethodError in EchantillonsController#create
undefined method `call'' for nil:NilClass
This is my create method in the controller:
def create
@echantillon = Echantillon.new(params[:echantillon])
@echantillon.set_eros_values
respond_to do |format|
if @echantillon.save
if
2012 Sep 18
2
undefined method `to_sym' for nil:NilClass
Hi all,
I am trying to upgrade my rails 2 app to 3 and am getting this error
when trying to login:
NoMethodError in AuthenticateController#authenticate
undefined method `to_sym'' for nil:NilClass
The stack trace is:
activerecord (3.2.2) lib/active_record/validations/uniqueness.rb:26:in
`validate_each''
activemodel (3.2.2) lib/active_model/validator.rb:153:in
2008 Jul 02
3
undefined method `name' for nil:NilClass
I''m a new puppet user. I can''t puppetmasterd to start. I searched this
group for the error message I get, but found nothing. Any ideas?
[root@puppet ~]# puppetmasterd
undefined method `name'' for nil:NilClass
Using the --debug switch and ruby''s --debug option shows the
following:
[root@puppet ~]# puppetmasterd --debug
debug: Parsing /etc/puppet/puppet.conf
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of
searching ive managed to get a little bit of Authlogic working. I''m able
to register a user, login & logout.
Now, I would like to add more features, get more of authlogic working.
I''m using Railscast EP 160 as my reference.
Portions of the code found on the tutorial throw errors: Eg:
<!--
2012 May 13
4
undefined method `key?' for nil:NilClass,bcrypt-ruby,has_secure_password
I''m going through DHH''s Agile Web Development with Rails for Rails 3.1. In
chapter 14 they create a Users sign-in model/view/controller using the
has_secure_password method. My user.rb file looks like this
class User < ActiveRecord::Base
attr_accessible :name, :password_digest, :password, :password_confirmation
validates :name, presence: true, uniqueness:
2012 Feb 17
5
undefined method `key?' for nil:NilClass PaperClip
Hello, I have a problem with the paperclip, I put on my GemFile
gem "paperclip", "~> 2.6.0"
I create a migrate
class FileUpload < ActiveRecord::Migration
def up
change_table :projects do |t|
t.has_attached_file :image
end
end
def down
drop_attached_file :projects, :image
end
end
on my model I put
class Project < ActiveRecord::Base
2013 Aug 29
4
Weird behaviour using ssl connection (OpenSSL::SSL::SSLError)
Hi guys
when I execute the piece of code bellow on RoR console it works fine:
url = URI.parse("https://us1.api.mailchimp.com/2.0/helper/ping")
request = Net::HTTP::Post.new(url.path)
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request.body = "{\"apikey\": \"myapikey\"}"
response = http.start
2012 Jun 26
4
ActionView::Template::Error (undefined method `strftime' for nil:NilClass)
Hello, I''m a newbie. I need help resolving this issue. I recently added a
pdf to the newsletter admin section of the website and now I can no longer
view page 2 of the list of pdf''s. Nor can I login to see the newsletters as
a student. I''m using Ruby 1.9.3, Rails 3.2.1.
Here''s the information from the log file.
ActionView::Template::Error (undefined
2011 Feb 19
1
undefined method `map' for nil:NilClass for rails 2.3.2
Hai guys!
When i try to do rake gems:install and rake gems:refresh_specs in my app
below error is occurred. please give some solution for this.
config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification
file. Run ''rake gems:refresh_specs'' to fix this.
rake aborted!
undefined method `map'' for nil:NilClass
enivorment.rb
RAILS_GEM_VERSION =
2008 Jul 10
6
Getting undefined method `-' for #<XMLRPC::DateTime:0xb7c729e8>
Hello, all.
I am getting the following error on a couple of my puppet nodes when I
run puppetd -v -o --no-daemonize --no-splay:
err: Could not retrieve catalog: undefined method `-'' for
#<XMLRPC::DateTime:0xb7c729e8>
The error goes away if I add --ignorecache, but I''m not sure that''s
quite the fix I''m hoping for. It will also go away if i remove my
2006 Mar 24
8
[OT] Does Net::HTTP support secure connections ?
Hi !
I''m trying to connect to an https URL, but it seems it doesn''t work.
Has anyone successfully connected from Ruby to an HTTPS server ?
Thanks !
--
Fran?ois Beausoleil
http://blog.teksol.info/
2013 Jun 23
1
Contact form - NoMethodError (undefined method `each' for nil:NilClass)
Hi Guys,
So basically I want a contact form to appear on all the service pages.
I''ve already created a contact form for the contact page which works
perfectly using this tutorial:
http://matharvard.ca/posts/2011/aug/22/contact-form-in-rails-3/
Now I would like to implement this approach on the service pages, and it
works until I push the Submit button, when I get the following error:
2010 Sep 03
1
Action Controller Error: undefined local variable or method `current_user'
Newbie learning Rails. I''m currently on Chp9 here:
http://railstutorial.org/chapters/sign-in-sign-out#top
At the end of the tutorial, rails is erroring (see below). being new
to Rails and after having checked the tutorial... How do you resolve
this kind of error. It''s saying current_user is not defined, and it is
supposed to be defined with/Sites/sample_app/app/helpers/
2012 Aug 14
1
NoMethodError: undefined method `accept' for nil:NilClass
Here''s the trace,
NoMethodError: undefined method `accept'' for nil:NilClass
from
/Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in
`to_sql''
from
2011 Nov 19
3
undefined method `+@'
Any idea what might be wrong?
ActionView::Template::Error (undefined method `+@'' for
#<ActionView::OutputBuffer:0x00000002e51580>):
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to