Displaying 15 results from an estimated 15 matches for "42s02table".
2007 May 26
11
RSpec
Hi RSpec Mailing list,
I''m new to RSpec and I am trying to get it running with the caboo.se sample
rails app.
I installed the current version of rspec with rspec_on_rails
I tried to run rake spec but received:
330-07:~/desktop/restful_auth_rspec/vendor multimedia$ rake spec
(in /Users/multimedia/Desktop/restful_auth_rspec)
2006 Apr 16
5
Newbie Problems with pluralization
...qual "Ontario", @taxgroup.name
assert_equal "Ontario w/ pst", @taxgroup.description
assert_equal "GST", @taxgroup.taxes[1].name
end
end
in which i get the following error:
1) Error:
test_create(TaxGroupTest):
ActiveRecord::StatementInvalid: Mysql::Error: #42S02Table
''imbibitive_test.taxes
_group'' doesn''t exist: SELECT * FROM taxes_group WHERE (taxes_group.id =
1) LIM
IT 1
......
1 tests, 0 assertions, 0 failures, 1 errors
Should it not pluralize the last work? Or am i missing something here?
Thanks!
--
Posted via http://www.ru...
2006 Jun 06
4
Rails keeps adding the letter s to the MySQL tablename.
...ftlic_controller.rb
class SoftlicController < ApplicationController
scaffold :softlic
end
So here is my problem. Ruby or maybe Rails, keeps addign the letter "s"
to the MySQL table name like it shows here...
ActiveRecord::StatementInvalid in SoftlicController#new
Mysql::Error: #42S02Table ''gcsaam.softlics'' doesn''t exist: SHOW FIELDS
FROM softlics
RAILS_ROOT: ./script/../config/..
My table name is softlic, not softlics. I''ve been at this for a day and
a half and am about to toss something across the room. :-) I am totally
stumped here. I ev...
2006 Apr 18
7
Connecting to multiple databases
...think the howto for working with multiple databases would
be pretty useless, if one weren''t able to instantiate a new object via
such a shared connection (i.e. inserting rows)?
Any ideas more than welcome!"!!!
Detailed error message and code below
ERROR
-----------
Mysql::Error: #42S02Table ''ca_sandbox.web_ca_admin_sandbox_bases''
doesn''t exist: SHOW FIELDS FROM web_ca_admin_sandbox_bases
CODE
--------
class WebCaAdminSandboxBase < ActiveRecord::Base
establish_connection "webcaadmin_sandbox_#{RAILS_ENV}"
end
class Community < WebCaAdminSa...
2006 Mar 22
2
n00b question
Total Ruby N00b here with a question about the Hibbs OnLamp tutorial.
I''m trying to hook up to my cookbook database and I''m getting:
ActiveRecord::StatementInvalid in Recipe#index
Mysql::Error: #42S02Table ''cookbook.recipes'' doesn''t exist: SELECT COUNT(*)
FROM recipes
RAILS_ROOT: ./script/../config/..
My thoughts:
I think I''m not actually connecting to MySQL.
My database.yml looks like this for tutorial purposes:
development:
adapter: mysql
database: cookboo...
2006 Mar 27
1
polymorphism + inheritance
...d
class Payment < ActiveRecord::Base
has_one :order, :as => :payment
# common stuff in here
end
I want to use [Payment] for common functionality typical to payments.
However, this will throw an error:
>> CreditCardPayment.create(...)
ActiveRecord::StatementInvalid: Mysql::Error: #42S02Table ''demo.payments''
doesn''t exist: SHOW FIELDS FROM payments
Is there a way to convince ActiveRecord that [Payment] is an abstract base
class that does not need to exist (and take the name of the concrete class
for determining the table name) ?
Thanks in advance!!
Best re...
2007 Aug 13
1
update from 0.22.4 to 0.23.x, not migrating database schema
...he puppetmaster from 0.22.4 to 0.23.0 (and today to
0.23.2). Although ''dbmigrate=true'' is turned on AND the puppetmaster is
saying it migrates the databse at startup, this does not happen.
When it should store configs, I get the error:
Could not store configs: Mysql::Error: #42S02Table
''database.resource_tags'' doesn''t exist: SELECT * FROM resource_tags
WHERE (resource_tags.resource_id
I had the error after updating from 0.22.4 to 0.23.0, I created the one
or the other column by hand, as it seems not all of them.
Would be nice if this would be done...
2006 Feb 21
4
Models, Helpers, Modules, etc.
Hello,
I am learning rails and ruby and I have some questions about how should I go
about doing certain things.
[1]Many of my models have some functionality which is common, and instead of
duplicating it across models, I want to store it in a single file, and then
import the file into the models. Should I do this using modules, and then store
them in the `lib'' directory? What is the
2006 Jan 20
15
Cannot rake migrate on OS X After New Install, Tons of Debugging
I''m getting ready to go to the Rails Studio in Pasadena next week. As
part of the prep for that event, I was instructed by the Pragmatic
guys to download and install a new Rails 1.0/Ruby 1.8.4 configuration
to my OS X 10.4.4 box. I did that three or four days ago. Ever since
then, I cannot run a rake migrate command successfully anywhere in my
Rails world. (Mind you,
2006 Apr 17
20
Rubricks - CMS on Rails
Hi list,
I made an open source CMS powered by Rails, named Rubricks.
I have a web page for Rubricks.
You can download it or view a flash demo there.
Please try them and feed me back, like bug report etc.
Check it out at:
http://rubricks.org/index_en.html
Thanks.
Shouta
2006 Sep 05
0
rake craziness with Migrate as a dependency
...nvironment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Execute deploy_demo
** Invoke load_my_fixtures (first_time)
** Invoke environment
** Execute load_my_fixtures
Loading Fixtures from db/fixtures/demo
rake aborted!
Mysql::Error: #42S02Table ''ideeli_development.blog_comments'' doesn''t
exist: DELETE FROM blog_comments
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract_adapter.rb:120:in
`log''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_rec...
2006 Apr 05
16
Migration won''t rollback to specific version?
Hi all,
I''m confused about how migrations work. I''ve been using them for a
couple of weeks but haven''t had any serious rollback issues yet. Just
now I added a field to a table with a migration and ran "rake migrate",
which added the field as expected.
This was in the file db/migrate/007_mymigration.rb, making it version 7.
Later I changed my mind and
2006 Mar 29
38
Poll: Which distro do you use for Rails/Ruby development?
Good afternoon,
I''ve two quick questions for the Ruby/Rails community.
1) Do you use Linux for Ruby or Rails development?
2) If you use Linux, which distro do you normally use to develop?
Thank you for your input. :-)
--
Posted via http://www.ruby-forum.com/.
2006 May 15
33
acts_as_commentable release
I now have the acts_as_commentable plugin up on RubyForge. This
plugin will allow you to add comments to any active_record object in
your Rails application.
So far the directions are simple, and there are only a few features:
To install:
ruby script/plugin install
svn://rubyforge.org//var/svn/commentable/acts_as_commentable
In the readme there is a sample migration you will need to use, with
2007 Jun 14
19
Please test export/collect from svn
For those of you out there using export/collect (which we really need
to come up with a better name for...), can you test the current SVN
code?
I''m mostly wondering if the performance is any better. To use it,
you''ll have to remove your current database, since the database
schema is significantly changed.
I''m getting what looks like an additional 25% reduction