Problem with code from Agile web development

I’ve tried running the migration from p. 76 of the 2nd edition (its
supposed to populate the table with data). But it gives me this error:

undefined method `create’ for
#ActiveRecord::ConnectionAdapters::MysqlAdapter:0x357170c

I’m not running edge rails and I know that earlier in the book one of
the examples required this. Could this be my problem.

Thanks

Hi Seth,

In order to get everything to work like the tutorial said, I did have to
use
edge rails. I’m not sure if it’s the solution to this problem or not,
though.

I’d suggest you go ahead and get edge rails, just for this tutorial
project.

Just do a

rake rails:freeze:edge

at the top level of the depot app. This will just stick the latest
version
of rails into your vendor/rails directory. It shouldn’t affect anything
else.

On 9/26/06, Seth [email protected] wrote:

Thanks


Posted via http://www.ruby-forum.com/.


Terry (TAD) Donaghe
http://www.rubynoob.com
http://www.tadspot.com

Thanks for the help.

I don’t know a thing about Subversion and all the tutorials on setting
up Edge rails assume that I do. What do I need to do in order to use
Subversion to get Edge Rails?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs