{"issue":{"user":{"id":119957,"login":"flickerfly","url":"https://api.github.com/users/flickerfly","avatar_url":"https://secure.gravatar.com/avatar/d50a94f227b1b2beac6df12b46caa4af?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d50a94f227b1b2beac6df12b46caa4af"},"milestone":null,"created_at":"2011-12-22T15:03:37Z","title":"README Instructions for Rails 3","labels":[],"state":"open","updated_at":"2011-12-22T19:33:48Z","id":2638007,"html_url":"https://github.com/kevintyll/ofac/issues/2","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"body":"Forgive me for my newbness. \r\n\r\nI'm trying to use your OFAC gem (v 1.2.3) in rails 3. The README tells me to do scripts/generate ofac_migration which I've determined changed in rails 3 to something like rails generate ofac_migration. When I tried that rails reported \"Could not find generator ofac_migration.\"\r\n\r\nIs it possible to use this gem in rails 3? If you can toss me some quick commands I'll be glad to format that into a pull request for inclusion in the readme.\r\n\r\nThank you!","number":2,"url":"https://api.github.com/repos/kevintyll/ofac/issues/2","comments":2,"assignee":null},"comment":{"user":{"id":55633,"login":"kevintyll","url":"https://api.github.com/users/kevintyll","avatar_url":"https://secure.gravatar.com/avatar/16dffef1e28f8d155f65f3de61b59516?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"16dffef1e28f8d155f65f3de61b59516"},"created_at":"2011-12-22T19:33:48Z","updated_at":"2011-12-22T19:33:48Z","id":3253721,"body":"The gem itself works in rails 3, as we just recently upgraded ourselves and we're still using the gem just fine.  Unfortunately, it looks like the generator probably does not work.  You are getting the \"could not find...\" error because rails 3 looks for generators in lib/generators.  My generators dir is not in the lib dir.  \r\n\r\nHowever, I suspect the problems are more than just the location of the files.  Generators got a big overhaul in rails 3 using thor now.  I believe even the generator base class namespace has changed.\r\n\r\nIf you wanted to try your hand at upgrading it, that would be super, I be very appreciative.  But if you just want to run the migration and be done, then it's simple enough to do it manually.  Just create a migration and copy the contents of generators/ofac_migration/templates/migration.rb into it.\r\n\r\nGood luck.  I hope you find the gem useful.\r\n\r\n\r\nKevin Tyll\r\nkevintyll@gmail.com\r\n\r\n\r\n\r\n\r\nOn Dec 22, 2011, at 10:03 AM, Josiah Ritchie wrote:\r\n\r\n> Forgive me for my newbness. \r\n> \r\n> I'm trying to use your OFAC gem (v 1.2.3) in rails 3. The README tells me to do scripts/generate ofac_migration which I've determined changed in rails 3 to something like rails generate ofac_migration. When I tried that rails reported \"Could not find generator ofac_migration.\"\r\n> \r\n> Is it possible to use this gem in rails 3? If you can toss me some quick commands I'll be glad to format that into a pull request for inclusion in the readme.\r\n> \r\n> Thank you!\r\n> \r\n> --- \r\n> Reply to this email directly or view it on GitHub:\r\n> https://github.com/kevintyll/ofac/issues/2","url":"https://api.github.com/repos/kevintyll/ofac/issues/comments/3253721"},"action":"created"}