Displaying 20 results from an estimated 10000 matches similar to: "Encoding::UTF_8 missing?"
2010 Jul 16
1
Rails 3 bug: undefined method `<=>' for class `ActiveSupport::Multibyte::Chars'
I''m getting the following bug when I try to run rake db:migrate in
Rails 3 beta 4:
$ rake db:migrate --trace
(in C:/Users/Adam/Documents/Aptana Workspace/QuestionBank)
default formats are encoded in ISO-8859-1
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== CreateUsers: migrating
2011 Sep 13
3
Accessing Rails helper method with_output_buffer
Hi all,
I cannot figure out how to correctly use the with_output_buffer helper
method (located in ActionView::Helpers::CaptureHelper) inside a custom
FormBuilder.
Below follows a simplified example.
I''m trying to achieve the following behavior in an ERB as suggested in
the form_for helper docs in the Rails source:
==========
<%= form_for @object, :builder => MyFormBuilder do
2009 Jun 17
2
validates_uniqueness_of fails on STI in Rails 2.3.2
I''ve got something like this:
class Position < ActiveRecord::Base
end
class CartItem < Position
validates_uniqueness_of :product_id
end
When I try to save CartItem I get this error:
ArgumentError: wrong number of arguments (1 for 2)
from
/home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/validations.rb:758:in
`exists?''
from
2009 Jul 31
43
Error: uninitialized constant MysqlCompat::MysqlRes
Hi,
I installed the "kwatch-mysql-ruby" gem on my Debian server but when I
try to run the "db:migrate" task I get the following error:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
uninitialized constant MysqlCompat::MysqlRes
2010 Jun 11
5
Issues creating tables in mysql tests
Hello,
I''m a beginner, so any hints are appreciated; I''m still trying to find my
way around Rails code. For a bug I''ve found I need to create a table called
"values" so I added this:
create_table :values do |t|
t.integer :value
end
among the other table creations in
activerecord/test/cases/migration_test.rb. Is that ok? But then, when I run
the tests
2010 Apr 20
1
dashboard: rake install fails (Solaris10)
Hi all,
I am trying to install dashboard 1.0.0rc1. Independantly if have
manually installed authlogic - gem or not it is throwing the following
trace. The problem is the same when I am resetting (rake db:reset) or
dropping the database.
any ideas?
best regards
Lutz
bash-3.00# rake install
(in /opt/puppet-dashboard)
dashboard_development already exists
can''t activate authlogic (=
2009 Mar 05
7
issue with the object cache
Hi,
I am getting a method_missing error when I run my application in the
production environment unless I set config.cache_classes = false in
config/environments/production.rb. This happens in Rails 2.2.2 but not
in Rails 2.1.0. The method that is missing is one I used to have
before I edited by hand the migration that creates the table
associated with the object (I know you are discouraged to do
2008 Oct 02
1
acts_as_taggable_on environment issues
Like most people, I''ve got two machines: one for development and one
for production. I''ve done everything I can to make sure the ruby/rails
environments are the same, but of course they''re not identical (I''ll
get into that in a moment). The error that I''m getting happens when I
call a method in a background task controller on the production
machine; I
2008 Nov 11
4
Very weird rake message...
When I try and run rake db:migrate, I get this error:
rake aborted!
uninitialized constant CreateUsers
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/
dependencies.rb:266:in `load_missing_constant''
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/
dependencies.rb:453:in `const_missing''
2009 Aug 31
7
"Missing these required gems: rspec-rails" in ruby 1.9
i get the above error when running rake.
I tried switching rails 2.3.3 with 2.3.2 but it didn''t help.
here are my gems:
actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
builder (2.1.2)
cucumber (0.3.98)
diff-lcs (1.1.2)
hoe (2.3.3)
nokogiri (1.3.3)
polyglot (0.2.8)
rack (1.0.0)
rails (2.3.2)
rake (0.8.7)
rspec (1.2.8)
rspec-rails
2011 May 11
2
rack problems
I''m having some issues running rake commands for puppet dashboard.
Here is one of the symptoms (see below). I''m a little new to setting
up rails/rack applications, so I may be making a common mistake. It
looks like gems are already packaged with dashboard, specifically
rack-1.01. Should that gem just work out of the box?
Command:
rake RAILS_ENV=production reports:prune upto=1
2009 Oct 01
3
mongrel + mysql can't connect in custom mysql install
Hi all...
The linux box I am working on I do not have root access to, and given I
am at a government site all hope of that is lost.
I have installed the mysql gem as follows:
env ARCHFLAGS="-arch x86_64" gem install mysql --
--with-mysql-config=/home/t192zcs/mysql/mysql-5.1.39-linux-x86_64-icc-glibc23/bin/mysql_config
2009 Jan 23
7
RubyOnRails with MS SQL - Connectivity Error
Hi all...
Please help me solve the issue.
While trying to create a connection with MS SQL database in RubyOnRails,
I''m getting a ‘Deprecated ..’ error. (I referenced a doc posted in net
for the same.)
System details: OS: Windows Xp
Ruby version: 1.8.6
Rails: 2.1.2
Gems: 1.3.1
RadRails: 0.7.2
2008 Jun 03
11
rake db:migrate not working
When I run the rake db:migrate command, I get this:
C:\testror\depot>rake db:migrate --trace
(in C:/testror/depot)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
182: Le systÞme d''exploitation ne peut pas exÚcuter %1. - c:/ruby/
lib/ruby/gem
2011 Jan 19
6
rake aborted! can't convert Hash into String
Hello,
I encouter a problem when i try to do "rake db:migrate":
rake aborted!
can''t convert Hash into String
Here is the trace result:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
can''t convert Hash into String
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1408:in
2010 Feb 27
1
Cannot migrate DB due to "getaddrinfo: Name or service not known"
I am using Rails 2.2.2 and try to do a DB migration, but got the
following error. I am using Centos 5.4. Can someone give me a clue?
>> rake db:migrate RAILS_ENV="production"
rake aborted!
getaddrinfo: Name or service not known
(See full trace by running task with --trace)
[current]$ rake db:migrate RAILS_ENV="production" --trace
** Invoke db:migrate (first_time)
**
2012 Feb 26
15
ActiveRecord::ConnectionNotEstablished
Hi,
I am trying the tutorial in:
http://guides.rubyonrails.org/getting_started.html
when I try to navigate to http://localhost:3000 after the 4.3 change
I get the error : ActiveRecord::ConnectionNotEstablished
and I don''t know how to solve it
the database.yml file is:
adapter => mysql
host => 127.0.0.1
database => blog
username => root
password => *****
my
2008 Mar 17
3
Don't know how to build task 'migrate'
Hi,
I have a rather simple problem. Just installed Rails on OS X Leopard and
the database connection to MySQL doesn''t work from Rails.
I''m following Apples Expenses example
(http://developer.apple.com/tools/rubyonrails.html).
I''ve created the app with the command
rails expenses -d mysql
I can connect to the database with a GUI tool, but Rails can''t
2009 Feb 21
3
Help w/ rake db:migrate error
I made a few changes to my migration files, dropped all tables (rake
db:drop:all), and when I went to re-create everything (rake
db:migrate), I get this:
rake db:migrate --trace
(in /Users/Eric/Development/Work/Rails/pcod)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `random'' for Tidbit(Table doesn''t
2007 Oct 24
8
validates_confirmation_of not working
Hello to everyone,
Well, very frustrated with this one because I am following the example
straight from the documentation and it is not working.
First when I try:
validates_confirmation_of :password, :on => :password_update
(password_update is a def in my User model which works fine without
this validation in please)
I get the following error:
TypeError in UsersController#update_password