First I installed the gem
>> sudo gem install hobofields
Password:
Successfully installed hobofields-1.0.3
1 gem installed
Installing ri documentation for hobofields-1.0.3...
Installing RDoc documentation for hobofields-1.0.3...
Then I copy pasted everything in the example on the cookbook page
about hobofields
>> rails tutorial
<I'm using rails Version 2.3.4>
<bunch of rails code>
>> cd tutorial
/tutuorial>> ./script/generate model blog_post --skip-migration
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/blog_post.rb
create test/unit/blog_post_test.rb
create test/fixtures/blog_posts.yml
copy paste the class file and save it
class BlogPost < ActiveRecord::Base
fields do
title :string
body :text
timestamps
end
end
simply run "./script/generate hobo_migration" and then get
undefined method `fields' for BlogPost(Table doesn't exist):Class
what am I doing wrong?
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en.