similar to: NoMethodError (undefined method `match' for nil:NilClass):

Displaying 20 results from an estimated 3000 matches similar to: "NoMethodError (undefined method `match' for nil:NilClass):"

2009 Jul 29
0
Problem uploading file to database mysql blob field
Hi All, Please help me ,I need to look into this issue asap, I need to change the redmine functionality of uploading files to disk to upload them to database. I tried suggestion on http://dizzy.co.uk/ruby_on_rails/contents/store-file-uploads-in-database but no luck , My form is multipart but still getting the error. Please bare with me I am new to ruby and rails. Here is the like for my
2005 Apr 26
0
NoMethodError (undefined method `fetch_fields' for nil:NilClass)
Hi I''m new to Rails (and Ruby) and I can''t get it to work properly. Every time I want to do something with my database-connection (e.g. use scaffold) I get this, or something similiar (from development.log): >> Beneath this code there''s some more text << ------- Processing CategoryController#index (for 127.0.0.1 at Tue Apr 26 21:43:45 CEST 2005)
2009 Sep 29
5
NoMethodError in Stories#show
I''m a Rails newbie and am working my way through Simply Rails 2 by Patrick Lenz. Have run into a problem on page 207 of the book; this is the error I run into when I fire up my server and open up httpL//localhost:3000/ stories/new I have posted the error message and trace below. Thanks in advance for your help.
2008 Aug 26
1
upload_column NoMethodError
Hi all, I''m using uploadcolumn plugin for file uploading. Followed the README file. Put "upload_column :src_file" in my model file as instructed, and i got this NoMethodError for the upload_column. This is the full trace: /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1667:in `method_missing'' app/models/speech.rb:2
2010 Dec 24
0
keep getting "undefined method `map' for nil:NilClass (NoMethodError) " in new server
hi guys, I have a new development server (ubuntu 10). I have done the following (the versions match my existing development machine which works fine): 1. installed ruby 1.9.1p378 2. installed ruby gems 1.3.7 3. installed rails 2.3.8 (used "gem install rails -v 2.3.8") 4. manually installed my other gems including sphinx and thinking sphinx with "gem install ..." 5. ran
2012 Nov 19
0
has_one :through NoMethodError: undefined method `klass' for nil:NilClass when doing class_name on reflection
Not sure if this is expected or not. Only happened with a has_one :through I had setup. (Workaround is just to remove it and go through the association manually vs has_one ..., through: .) Not a big deal if no one has time to look at it, as it''s not a big enough deal to look into a fix on our side. In Rails (3.2.9) console if I do: MyModel.reflections.each {|name,reflection|
2011 Mar 11
2
Problem with Redmine
I am having a problem getting Redmine to run with Oracle (11.2) backend. I get this error (below) because Oracle table names are limited to 30 characters. Does anyone around here know of a fix or workaround? I''m wondering if I can simple change the table name, or if that will break the application. When doing a db migrate to an Oracle db this creates the error below. I''m so
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:
2007 Dec 04
2
Bug: NoMethodError: private method `gsub'' called for nil:NilClass
Hi there. I''m using RedCloth as part of a social network''s blog system. I came across the following bug when an img tag with the src attribute is inputted, and filter_html is set to true. I have pasted the code sample below. >> require ''RubyGems'' => true >> require ''RedCloth'' => true >>
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
2005 Nov 12
2
undefined method `protocol' for nil:NilClass
Hi! This may have been answered somewhere before, but my searches turned up nothing. I am developing a Rails app that generally works, but just generated a new controller ("list" controller), did not add anything, and when I go to http://localhost:3000/list/ I receive an error. It appears that the page was properly generated, but somewhere preparing the result raised this
2008 Jun 30
1
Help with form_for
Hello, I had an app running on RoR 1.1, now I''m migrating it to 2.1. In a view I have: <div id="user_management"> <fieldset> <legend>Please log in</legend> <% form_for(:user, :url => sessions_path) do |f| %> <p>Username: <span class="notice"><%= flash[:notice]%></ span></p>
2009 Apr 17
0
A frustrating and strange error when config.action_controller.perform_caching = true
Hello all. I am having a hell of a problem and it''s driving me nuts. I get the following error (undefined method `controller_name'' for nil:NilClass): but only when config.action_controller.perform_caching = true I googled around some and found this thread http://groups.google.com/group/communityengine/browse_thread/thread/b84154e5228bf9f3which suggests it may be a conflict with
2009 Apr 15
0
hpricot bug?
I get an error in the hpricot-gem on Windows XP sp3. I have tested different versions of it and combined them with different versions of sequel (including the latest of both). The error triggers on the line when I do: require ’hpricot’. The line that causes the error in the hpricot-gem in the file elements.rb (line 395) looks like this: nth = proc { |num,i| self.position == num.to_i } What is
2005 Mar 23
1
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)
I am getting random can''t connect to MySQL server errors on my Rails application located at http://www.thedatingguy.com/blog Do you have any clue why this is happening? This is the error: Mysql::Error (Can''t connect to local MySQL server through socket ''/tmp/mysql.sock'' (61)):
2005 Apr 26
2
SQLite error
I have an app that seems to run fine when I develop on windows, but in my linux deployment environment I get this error: uninitialized constant SQLite Here is the stack trace: /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/dependencies.rb:183:in `const_missing''
2008 Jun 12
3
Upgrading to 2.1 breaks my named routes
I just upgraded to 2.1 and attempted to log in to my application and when this line is reached in my login action: redirect_to(index_url) I get the error "wrong number of arguments (0 for 1)" [stack trace below]. Here''s my route: map.index ''index'', :controller => ''e_simply'', :action => ''index'' I found
2009 Mar 26
1
Error Send Message
Hello, I''m trying to make my rails app send mail. so it''s can''t send it''s error. I''m using the following configuration in environment.rb: == Rails::Initializer.run do |config| ... config.action_mailer.delivery_method = :smtp end ActionMailer::Base.smtp_settings = { :address => "mail.mydomain", :port => 25, :domain =>
2012 Apr 19
1
active admin undefined method `' for nil:NilClass
im working with active admin i have collection_select or dropdown box that populates the packages and crews im just wondering i why this undefined method `[]'' for nil:NilClass` i dont know what happened but it run few days ago and tested it once but now it raises this error are there possible way to solve this? def create @package = Package.find(params[:package_crew][:package_id])
2008 Jul 09
11
script/generate scaffold user
NameError in UsersController#index uninitialized constant UsersController::User RAILS_ROOT: C:/RailsApps/rgams Application Trace | Framework Trace | Full Trace c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:492:in `const_missing'' app/controllers/users_controller.rb:5:in `index''