I seem to be having a problem getting my RoR all setup with MySQL
database.
I am developing on Windows XP. Installed MySQL 5.0 and it seems to be
working and have already fixed an issue with my password in the
database.yml file.
I have tried creating a controller like this:
class BlogController < ApplicationController
scaffold :post
end
and a model like this:
class Post < ActiveRecord::Base
end
and have created the database in MySQL and created a table like so:
drop table if exists posts;
create table posts (
id int not null auto_increment primary key,
title varchar(255) not null,
created_at datetime,
body text
);
Then when I go to localhost:3000 after starting my mongrel server I get
this page:
Errno::EBADF in BlogController#index
Bad file descriptor - connect(2)
RAILS_ROOT: C:/dev/blog/config/…
I can post the full trace if it will help. Anyone have any ideas what I
am doing wrong? I basically am just trying to see some scaffolding.
Thank you so much.