Ok, I found the error. On the slapp tutorial it says: $ merb-gen model Post body:string created_at:datetime
when this should be $ merb-gen model Post string:body datetime:created_at On Sep 22, 10:25 pm, Nikos Dimitrakopoulos <[EMAIL PROTECTED]> wrote: > Nope, i have the following versions installed: > activerecord (2.1.0, 2.0.2, 1.15.6, 1.15.3) > > (i need the older versions for some specific projects) > > Is it possible for merb_activerecord to mess things up regarding gem > versions?? > > On Sep 22, 10:20 pm, Julian Leviston <[EMAIL PROTECTED]> wrote: > > > Is it because you don't have the latest active record installed?? > > > Julian. > > > On 23/09/2008, at 4:53 AM, Nikos Dimitrakopoulos wrote: > > > > Yes, but why are 'sexy' migrations not supported??? > > > > On Sep 22, 1:32 am, Mark Watson <[EMAIL PROTECTED]> wrote: > > >> Change the incorrectly generated migration file to: > > > >> class ArticleMigration < ActiveRecord::Migration > > >> def self.up > > >> create_table :articles do |t| > > >> t.column :body, :string > > >> t.column :title, :string > > >> t.timestamps > > >> end > > >> end > > > >> def self.down > > >> drop_table :articles > > >> end > > >> end > > > >> I think that the rest of the tutorial will work for you after this > > >> edit. > > > >> -Mark > > > >> On Sep 18, 11:39 am, LinPan <[EMAIL PROTECTED]> wrote: > > > >>> I'm walking through the Slapp Merb tutorial, and I've encountered a > > >>> problem using ActiveRecord migrations. > > > >>> One of the first steps is to create a Post model: > > > >>> $ merb-gen model Post body:string created_at:datetime > > > >>> However, when I try to run this migration, I get the following > > >>> error: > > > >>> rake aborted! > > >>> undefined method `body' for > > >>> #<ActiveRecord::ConnectionAdapters::TableDefinition:0x221d444> > > > >>> I'm using Merb and MerbActiveRecord 0.9.7. I've tried this with > > >>> ActiveRecord 2.1.0 and 2.0.2, and both throw the same error. Has > > >>> anyone else encountered this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
