Displaying 20 results from an estimated 8000 matches similar to: "rake db:migrate error: uninitialized constant mysql"
2006 Aug 05
14
Rake aborted! on No Rakefile Found error
Hello,
On a command:
rake db:migrate
I get the "rake aborted!" error. The message is:
No Rakefile found (looking for: rakefile, Rakefile, rakebile.rb,
Rakefile.rb)
c:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in
''load_rakefile''
Checking my setup, I see that Rakefile.rb is in the expected path.
Why can''t rake see Rakefile.rb,
2006 Aug 10
1
rake doc:plugins , error
Hi,
Im trying to generate the documentation for the plugins I have
installed, however when I run the following command, I just get the
following error.
rake doc:plugins
C:\InstantRails\rails_apps\opp>rake doc:plugins
(in C:/InstantRails/rails_apps/opp)
rdoc -o doc/plugins/acts_as_authenticated --title ''Acts As Authenticated
Plugin
Documentation'' --line-numbers
2008 Jul 24
0
Errno::EBADF Send an Email in Rails using GMail
Hi,
would someone please help me. I have been desperatley trying to fnd
out for the last two days why the following code is not working. Any
ideas.
I''m running Instant Rails 1.4 / Rails version 1.2.5 / Ruby version
1.8.5 (i386-mswin32) / RubyGems version 1.1.1 / Action Mailer version
1.3.5 / Windows XP.
Here is a description of my emailing application:
in
2006 Mar 12
2
InstantRails works with WEBrick, fails with SCGI
I have an app that I''ve been developing for some time with RADRails and
WEBrick locally. I wanted to take it to Apache and following the
following steps:
1) Downloaded and extracted InstantRails.
2) Started and tested cookbook with SCGI. Works great.
3) Copied my app over to rails_apps directory.
4) Added a virtual host to Apache identical to cookbook (just using port
9999
with
2006 May 09
6
Still Stumbled on First things in trying RubyOnRails
Still Stumbled on First things in trying RubyOnRails
http://www.digitalmediaminute.com/article/1816/top-ruby-on-rails-tutorials
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html
http://instantrails.rubyforge.org/tutorial/index.html
http://rails.homelinux.org/
I had tried the first of the top 12 tutorials and got stuck after adding
a new field ?category_id?in the table recipes,
2010 Aug 24
11
will_paginate problem
Hi
I am using rails 2.3.8 & ruby 1.3.7 & will_paginate 2.3.14
I have table name books. I am doing this code for pagination,
In book_controller
@@@@books = Book.paginate :page => params[:page], :per_page => 10@@@@
& in index.html.erb
@@@@@<%= will_paginate @books %>@@@@@
Also added in environment.rb file this line
@@@@@ require
2006 Aug 09
3
Need help with backgroundrb''s concepts and installation
Hello backgroundrb-devel
my name is Teeranit Ruangdet. I''m fairly new to Ruby on Rails so please bear
with me here.
I''m currently on a project where I need to import a whole bunch of records
from spreadsheet(.csv) and save them in the database. My problem is that
while I''m importing (huge file...say 5000 employees), no one else can access
the website (it basically block
2006 Apr 23
2
Rails Recipes
Rails Recipes ... has got some very appetizing recipes. However, I have
a hard time starting. For example, the very first recipe,
InPlaceEditing, how and where do I run this code to create the table?
Thanks!
class AddContactsTable < ActiveRecord::Migration
def self.up
create_table :contacts do |t|
t.column :name, :string
t.column :email, :string
t.column :phone,
2008 Nov 30
11
rake aborted! undefined method `each' for #<Mysql:
I''m struggling with several problems getting my first time ruby on rails
environment running. I''m now stuck on this problem too.
rake db:migrate generates the following error. This one is on a vista
machine. Anyone seen this before. Any thoughts or advice?
Reading about Ruby on Rails has really got me excited to give it a try.
But in practice getting to the point that I can
2008 May 09
2
Getting an error when trying to create a new application..
I''m new to Ruby/Ruby on Rails. I''m trying to create an application and
am getting this error:
C:\InstantRails\rails_apps>rails demo
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:379:in
`report_activate_
error'': RubyGem version error: activesupport(2.0.2 not = 2.0.2.9216)
(Gem::LoadE
rror)
from
2006 Jun 08
1
Test errors
I''m working on learning user auth and ran a test/unit/test.rb and seem to
have stumbled across some errors. This is from a tutorial on the web and I
pretty much copied the code and checked syntax so not sure where it''s
wrong. I thought I''d throw it out since I"m new to ROR and the error didn''t
look too bad ;), perhaps someone would have a better
2006 Mar 13
2
Engines with InstantRails
I''ve recently started playing with InstantRails 1.0 and am now wanting
to experiment with the Login and active RBAC engines but having trouble
getting them to install.
I''ve checked the following but can''t find any info on how to get it to
work.
http://rails-engines.org/wiki/pages/Engines+plugin
I''ve also tried the following:
2006 May 15
2
Error creating controllers in InstantRails-1.3a
Hi,
I was able to successfully Install InstantRails-1.3a and run cookbook throgh
Apache and WEBrick , however when I try to create my own app. cookbook2
following tutorial ( http://instantrails.rubyforge.org/tutorial/index.html)
, it gives me below error whle creating MyTest controller
Cannot find gem for Rails =1.1.2:
Install the missing gem with ''gem install -v=1.1.2
2008 Dec 23
1
server won't start!
Hello,
I''ve got an InstantRails 1.7 app (ruby 1.86, rails 2.1.0) that will no
longer start since I rebooted my windows server 2003 machine to complete
some windows updates. However, I also deleted some gems earlier today,
but it started right up perfectly fine. Anyway, here is whats happening:
C:\InstantRails\rails_apps\dejavu>ruby script/server
=> Booting Mongrel (use
2007 Feb 16
5
rake db:migrate - error 'tSYMBEG'
I''m going through the ''Depot'' project in "Agile Web Development with
Rails". I just made the 003_add_test_data.rb file and when I do a "rake
db:migrate", I get this error and I can''t figure out what is wrong:
rake aborted!
./db/migrate//003_add_test_data.rb:5: parse error, unexpected tSYMBEG
5. :description =>
(and the
2008 Apr 15
2
NoMethodError in StoreController#add_to_cart
I''m trying to set up the Depot app from Agile Web Development and I
got this error after C1 - Creating a Cart.
The exact error looks like this:
-------------------------------------------------------------------
NoMethodError in StoreController#add_to_cart
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while
2007 Feb 04
4
problems with tutorial
I''m having some trouble with the instructions at the link below:
http://instantrails.rubyforge.org/tutorial/restarting_the_dev_env.html
I had started at the tutorial at http://instantrails.rubyforge.org/
tutorial/index.html
and had gotten as far as creating the cookbook2 exercise and had
gotten to the "Welcome aboard you''re riding ruby rails" screen in
explorer, but
2010 Jan 20
4
Rake Aborted wont Migrate mysql
Hello all, I''ve been trying to get ruby on rails to work with my local
install of mysql(its with wamp). Windows XP, Ruby 1.8.6, rails 2.3.5,
rubygems 1.3.5, mysql 5.2 something I believe.
I have ruby installed in:
C:\Ruby
and my mysql is installed in:
C:\wamp\bin\mysql\mysql5.1.30\bin
I''ve attempted to change my database.yml file to include the port 80,
and port 3036, the
2008 Jan 15
2
Installing Ruby on Rails - missing the "Components" folder.
Hi,
I''m trying to get up and running on rails.
I''m on Vista 32 and have installed instant rails on C:\InstantRails
from: http://instantrails.rubyforge.org/wiki/wiki.pl
I''ve done the "gem update --system" and "gem install rails --include-
dependencies"
When I run the "rails music_library" command from rails_apps
directory I get the default
2006 May 24
0
Mongrel errors on file upload
I did a spike in my sandbox to make sure I understood how to do file uploads using CGI and there seems to be a problem with Mongrel. WEBrick doesn''t display the problem, but I can reproduce it everytime with Mongrel. I''d really appreciate it if someone would try out the code below and see if they see the same thing.
The browser behavior is:
- under IE6, a Page Not Found error