similar to: Help with error "undefined method `downcase' for nil:NilClass" after migration

Displaying 20 results from an estimated 10000 matches similar to: "Help with error "undefined method `downcase' for nil:NilClass" after migration"

2009 Jul 18
4
rails 2.3.2.not working working with cgi - How to revert
Hi All, As the problem faced by many other folks that rails 2.3.2 is not working with cgi, Now I want to revert to rails 2.2.2 on my shared host (bluehost ) can anybody guide me how to revert to 2.2.2. I tried the following: 1. I installed the older rails gem "gem install rails --version 2.2.2 --include-dependencies " 2. I tried to set the PATH env to my rails 2.2.2 version and also
2009 Mar 06
9
Association broken when upgrading from rails 1.2.6 to 2.2.2
I have an app with the following models: course belongs_to :semester semester has_many: courses belongs_to :education education has_many :semesters In my old app (rails 1.2.6) I was able to access variables via controller @courses = Course.find(:all) view file: <% for course in @courses %> <%= course.name %> <- this line works <%= course.semester.name %> <- this is now
2011 Mar 16
19
Uninitialized constant Files::Magick -still around
Hi there, I''m solving the problem about the plugin Magick. In my app in Gemfile I''ve follwoing: require ''rubygems'' require ''mongo'' require ''RMagick'' include Magick and in a model Files: class Files def self.save(upload) ... img = Magick::Image.read(''public/data/nature6.jpg'').first end end
2008 Nov 12
4
Help! getting a "can't dup NilClass" error and don't know what to do about it.
Thanks for any help you can offer. I am trying to send out a small batch of emails using an http request. I know it sounds odd. hear me out. I have loaded a bunch of emails into this table and just want to slowly work through them. Sort of a poor mans AR:Mailer. But I am getting a "can''t dup NilClass" when I hit it with a http request. **********************************
2006 Jul 20
4
setting site up on dreamhost
Hi, was wondering if anyone has had any experience setting a site up on dreamhost.com Ive uploaded teh site, turned fastCGI on However having a few problems gettign the site to show, when i go to /public/ it shows the rails welcome page, should I be redirecting the sit url to this? thanks scott -- Posted via http://www.ruby-forum.com/.
2009 Feb 20
6
rails 2.2.2 does not work with ruby 1.9.1
Hi everyone! I''ve installed new Ruby 1.9.1 from sources (http://www.ruby-lang.org/en/), then "gem install rails", everything was ok during installation, all tests ("make test") were ok too. After all, i wanted to create my new RoR project, but I could not start it. Plz help me Here is my terminal: [renat@localhost rails]$ rails mysite create create
2008 Mar 20
5
How to unit test Rails itself (API)?
Hello, I searched unit test for Rails on internet, but all the results are for testing Rails APPLICATION generated by Rails. But I think Rails itself needs unit test, too. I need to make sure that all APIs/methods of Rails work fine in different scenarios. I didn''t see any unit test files in the Rails package. Does anyone know how to unit test Rails itself? Thanks a lot.
2010 Oct 19
4
Rails3 on bluehost??
I''m trying to deploy a rails 3 app to bluehost... Does anyone have related experience?? I tried a few hours, still struggling.... Many thanks... -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this
2008 Jun 12
7
Problem uploading files (possibly an OS X issue?)
I have a running Rails application that uploads files back to the server occasionally. I recently switched my development machine from a Linux box to OS X 10.5, using the Apache server built-in on OS X and mod_fcgid. I thought everything was fine until I recently tried to use the file upload feature. If I specify a reasonable sized (164 Kb) file for upload then I get an immediate error, before my
2008 Dec 20
9
Upgrade to Rails 2 - problem with "save" (MySQL boolean issue?)
I have been working through an upgrade of my 1.2.6 application to 2.2.2. I am almost there but I have hit a problem with ActiveRecord. Before the upgrade, the following code was working fine. def create_root(administrator) root = create_root_collection(self.pingee_name, administrator,
2008 Apr 16
8
Will acts_as_taggable_on_steroids and better_nested_set work together?
I am having this crazy problem where it ONLY shows up in testing. This is my test code <code> def test_should_destroy task1 = Task.new(:description => "tmp", :done => false, :user => User.find_by_login(''admin'')) assert task1.save assert task1.destroy end </code> This is my task model
2007 Dec 14
17
Rails 2.0.1 RC2 - activerecord-oracle-adapter not found
Hi, Does anyone know why gem can''t find activerecord-oracle-adapter? C:\>rails --version Rails 2.0.1 C:\>gem install activerecord-oracle-adapter ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find activerecord-oracle-adapter (> 0) in any repository It all started when I tried to run Mongrel on a Win32 box: C:\web\FDS_Server>mongrel_rails start
2009 Aug 28
0
string downcase or how to use downcase an hostname in puppet?
Hi there. I am trying to fix hostnames in our Redhat distributions. Some of our server has some hostname un uppercase, and I need to change them into lowercase because people that use the server rather like lowercase hostnames... I did some basic work : Template : $ cat /var/puppet/templates/rh-network.erb # WARNING this file is autogenered by puppet. Any change there will # be
2008 Apr 09
5
Peculiar Hpricot error in Rails app
Hi, I have been stumped by this error Hpricot is generating in my rails app. The error looks like this: $ script/console Loading development environment (Rails 2.0.2) >> str = ''<p>lorem ipsum <a href="http://dolor.com/">dolor</a> sit amet.</p>'' => "<p>lorem ipsum <a href=\"http://dolor.com/\">dolor</a>
2009 Mar 25
11
ActiveRecord: Nested :include erroneous behavior
Hi, Found a simple example breaking on moving to 2.2 from 2.0. This example illustrates the usage of nested :include finder options. class Book < ActiveRecord::Base has_many :distributors end class Distributor < ActiveRecord::Base belongs_to :book has_many :agents end class Agent < ActiveRecord::Base belongs_to :distributor has_many :shops end class Shop <
2008 Jun 13
2
Rails 2.1.0 - find with :include and missing JOIN in SQL query
Hi, We''re trying to rewrite veeeery old Rails app that we successfully managed to move to 1.2.6 and now we''re trying with 2.1.0. One of the problems is caused by :include in AR.find. Rails 1.2.6 generates totally different SQL query than 2.1.0. Here''s Rails find query and generated SQL queries: Foo.find(:all, :include => :ticket, :conditions =>
2008 Oct 08
11
Using image_tag and send_data
I am using image_tag to load an image that I''ve saved to the database (using attachment_fu if you''re curious but that''s probably not relevant here): VIEW <%= image_tag ''/photo/get_image/5'' %> CONTROLLER def get_image @photo=Photo.find(params[:id]) send_data(DbFile.find(@photo.db_file_id).data, :type =>
2008 Nov 21
15
Switching the version of Rails that an app uses
Hi All, I’ve got a few versions or Rails installed and I''d like to run an App I’m developing with various versions of Rails. I heard of two ways to switch the version of Rails that an app uses: 1. Use GitHub as described by http://kylecordes.com/2008/04/30/git-windows-go/ . But that requires using Bash in a Command Window and more steps than I want to go through. 2. Alter
2013 May 19
5
update_attributes() for a single column
I was just faced with a strange ROLLBACK exception when attempting to execute this code: $ rails console user = User.first User Load (1.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 => #<User id: 1, name: "Michael Hartl", email: "foo-+RB1Aph5k6s@public.gmane.org", created_at: "2013-05-12
2009 Feb 22
2
Strange AR error ( column does not exist)
I''m trying to deploy a Rails app on a platform using Thin, after some horrible sessions trying to make it work with fcgi. All is going well, but my Application controller throws this error: ActiveRecord::StatementInvalid (PGError: ERROR: column "firstpeer" does not exist LINE 1: SELECT * FROM "switches" WHERE (firstPeer = 15 OR secondPeer...