Displaying 20 results from an estimated 10000 matches similar to: "NoMethodError (undefined method `to_sym' for {"6"=>"1"}:Hash"
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
2009 Sep 25
3
NoMethodError : undefined method `stringify_keys!' for "2":String
Hi,
I have been trying to create a small Rails application. In one of
the steps, I am facing this error as "NoMethodError in
ContactController#update ...... undefined method `stringify_keys!''
for "2":String".
Let me give a brief description of the application. This application
is to Create, View and Update contacts. The problem came when updating
a record.
2008 Feb 11
3
can't update my data base using "update_attributes"
Hello,
I have this problem that my rails application works fine in development
environment on my local Linux and windows system but when I uploaded it
to work on the server in production environment I have this problem as
listed in the pasted log file at the end of this entry:
NoMethodError (undefined method `[]'' for nil:NilClass):
/app/controllers/admin_controller.rb:201:in
2008 Mar 04
2
Why would ActiveRecord connect to Postgres as root?
My databases.yml makes no mention of root and in my dev environment
everything works fine, however following a deployment with Capistrano
about an hour ago, I get the following error:
PGError in HomeController#index
FATAL: role "root" does not exist
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
connection_adapters/postgresql_adapter.rb:713:in `connect''
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
Hi.
I am using BackgrounDRb to process thumbnails and upload to S3 -
things are hunky-dory in development (thumbs are generated, these are
uploaded to S3, the metadata is saved to trhe DB, and I get a nice
status page updated by periodic calls via ask_status), but when I
tried to deploy to our staging server and stop/start BackgrounDRb via
Capistrano, things blew up - well, not exactly,
2008 May 16
0
attachment_fu and/or rmagick on osx -- weird error
One of our developers is getting a weird error from attachment_fu and/or
rmagick on OSX. And even weirder because he''s used attachment_fu and
rmagick on other projects without difficulty. This all works fine on
debian/ubuntu. See the stack trace below. Any suggestions?
Btw, the code that''s blowing up is retrieving the attachment_fu info.
The presence of image_science in
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)
2010 Mar 05
0
NoMethodError (undefined method `match' for nil:NilClass):
Hi,
I have a redmine server with Ruby 1.8 running along with Webrick. When I
try to access any docs on the server using web interface I get the
following message.
Internal error
An error occurred on the page you are trying to access.
If you continue to experience the problems please contact the
administrator.
I looked to production.log i found the following messages. I really need
your help.
2008 May 08
5
Simple Generated Component Suddenly Gives Errors
What am I doing wrong here when I wrote a very simple component so :
C:\ruby\letter4sure>ruby script\generate scaffold pso_printers
printing_setting_id:integer pso_id:integer
exists app/models/
exists app/controllers/
exists app/helpers/
create app/views/pso_printers
...
Then I did a rake db:migrate
And then I simply went to take a look at the url for the above :
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 Jun 22
1
will paginate?
I installed the gem will_paginate and made a simple view to mess out
how it works
in the controller i have
@sites = Site.paginate :per_page => 10, :page => params[:page]
simple view
<% for @sites in @sites %>
<%= @sites.naam %>
<%= will_paginate @sites %>
<% end %>
but i got no result
ActionView::TemplateError (undefined method `page_count''
2008 Jan 14
0
Controoler/View problem
Hi i''m new with ruby on rails. And i''m trying to build an application
with an authentication method, I''m using the Recipe from the book
"Rails Recipes". The thing is that i wrote the procedure inside the
Login controller class, but when i try to access it I got an exception
that say "couldn''t find Login With ID=signin" (signin is the method
2008 Mar 27
3
Help with authentication errors
Hello,
I have been working through two books, "Agile Web Development with
Rails, 2nd Ed." and "Ajax on Rails". I''m using Rails2.0. In both cases,
I run into an authentication error when doing the examples. In AWDwR,
when trying to add new information to the database (p. 68) I get
ActionController::InvalidAuthenticityToken in AdminController#create
2008 Apr 05
1
Problems getting file upload to work on rails 2.0.2
Hey Guys,
I''m trying to upload a file to rails. I thought it would be pretty
straightforward but I''ve run into a peculiar bug... the form I''m using
is shown below and then the error message.... any suggestions or
diagnostic hints would be appreciated. I''m running rails 2.0.2 and ruby
1.8.6
<form method="post"
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
2008 Feb 22
2
ActiveRecord::DangerousAttributeError ???
Hi,
For some reason, this harmless block of code in my application
controller
def index
@wide = true
end
is causing this hideous error. I have read the error means that the
error is raised when attribute has a name reserved by ActiveRecord.
Does that mean that none of my models can have columns named "toggle"?
Here is the error and framework trace:
2008 Feb 15
3
Ajax problem with rails 2.0.2 - frozen string?
I am deploying a new rails application on a shared host (hostingrails)
for the first time. My local app works great. However, Ajax requests
in the deployed application are generating the following error:
/!\ FAILSAFE /!\ Fri Feb 15 08:44:59 -0600 2008
Status: 500 Internal Server Error
can''t modify frozen string
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
2007 Dec 21
7
missing sourcefile (no such file to load)-- squlite3 error
hi all,
i got a problem of no such file to load -- sqlite3, after installing
new rails version yesterday...
the uninstallation gone through this way...
$ gem uninstall rails
successfully uninstalled rails-1.2.3
Remove executables and scrips for
''rails'' in addition to the gem ? [Y/n] - then i gave it ''Y''
*** as like it gone
2008 Jan 06
8
ActionController::InvalidAuthenticityToken
Ruby noob here.
Just installed Rails 2.0, and am having trouble with updating DB
tables, using the ApplicationController.
My ApplicationController file looks like:
class StoryController < ApplicationController
protect_from_forgery :only =>
[:create, :update, :destroy]
scaffold :story
#def index
#@current_time = Time.now
#@story =
2006 Jan 11
6
Help -- NoMethodError in
Hi,
I am just learing Rails and I am going through the Agile Web Development
with Rails book. I am receiving:
NoMethodError in Store#add_to_cart
undefined method `add_product'' for #<StoreController:0x3764d80>
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/controllers/store_controller.rb:12:in `add_to_cart''