That did the trick.

I had got as far as installing the rc3 gems but was still getting a
missing method for auto_upgrade! (see below). The thing I was missing
was the "require dm-migrations" line in the code.

Thanks for the help - I think I need to go back to ruby 101 to
understand "require" better but even so I'm having great fun with ruby
:)

Cheers

Neil

/var/lib/gems/1.8/gems/dm-core-1.0.0.rc3/lib/dm-core/model/relationship.rb:373:in
`method_missing': undefined method `auto_upgrade!' for Post:Class
(NoMethodError)
        from 
/var/lib/gems/1.8/gems/dm-core-1.0.0.rc3/lib/dm-core/model/property.rb:288:in
`method_missing'
        from dm_test.rb:13


On 28 May 2010 19:38, Dan Kubb (dkubb) <[email protected]> wrote:
> Neil,
>
> I just tried your example, slightly modified, with DataMapper 1.0.0
> rc3 and it worked for me: (I put the output at the bottom underneath
> the __END__ tag)
>
>  http://pastie.org/982200
>
> I'm not sure what the problem is, but before we try to debug, you
> should try the above script with the latest rc3 gems. The following
> command should install enough to run the pastie above:
>
>  gem install dm-core dm-migrations dm-sqlite-adapter --pre
>
> Please let me know whether this works for you or not.
>
> --
>
> Dan
>
> --
> You received this message because you are subscribed to the Google Groups 
> "DataMapper" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/datamapper?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to