I''m trying to call the postback generator on rails 0.9.5. I''ve installed the postback tarball into gems/1.8/gems/rails-0.9.5/generators/postback as it seems like it is supposed to be. At least, I installed the login generator the same way and it works. But when I try to run it, I get this: [carl@e236014 test]$ ruby script/generate postback /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/action_controller/support/dependencies.rb:59:in `const_missing'': uninitialized constant ScaffoldGenerator (NameError) from /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.5/lib/../generators/postback/postback_generator.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.5/lib/rails_generator.rb:34:in `instance'' from script/generate:27 The PostbackGenerator class inside postback_generator.rb is trying to inherit from ScaffoldGenerator, but it is undefined. I tried requiring it but that didn''t work. I''m not sure how to tell it to look in the specific directory where the scaffold generator is located without hard-coding an absolute path, and I figured there should be some better rails convention for requiring these types of things anyway. Can anybody help me? Thanks, Carl
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Carl Youngblood wrote:> The PostbackGenerator class inside postback_generator.rb is trying to > inherit from ScaffoldGenerator, but it is undefined. I tried requiring > it but that didn''t work. I''m not sure how to tell it to look in the > specific directory where the scaffold generator is located without > hard-coding an absolute path, and I figured there should be some better > rails convention for requiring these types of things anyway. Can > anybody help me?Yes, the postback generator relies on a pending patch. I''ll make a note on the wiki page. Oh, wait -- there is a note! See http://wiki.rubyonrails.com/rails/show/Generators jeremy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB+w2gAQHALep9HFYRAneyAKCDBW+C7w3WR5sO1nEjQaiPNXdd1ACfY3Px oel5/dOYzwy+fWcbLOlWZYY=n0Ao -----END PGP SIGNATURE-----
On Jan 28, 2005, at 8:14 PM, Jeremy Kemper wrote:> Yes, the postback generator relies on a pending patch. I''ll make a > note > on the wiki page. Oh, wait -- there is a note! See > http://wiki.rubyonrails.com/rails/show/Generators > > jeremyWhen you said "requires bleeding-edge rails" I wasn''t sure if that information was up-to-date. Perhaps it would be better to say "this still doesn''t work with version 0.9.5 and requires bleeding-edge rails." I updated the wiki page. Thanks, Carl
Greetings all, I''ve made my rails blogging app (a work in progress) available for critique at http://resistanceisfutile.blogdns.org:7000/ If it strikes you as an interesting diversion, please do drop by for a look and let me know what you think. Be Well Twitch
James G. Stallings II wrote:> > Greetings all, > > I''ve made my rails blogging app (a work in progress) available for > critique at http://resistanceisfutile.blogdns.org:7000/ > > If it strikes you as an interesting diversion, please do drop by for a > look and let me know what you think.Cool and congrats! Looking forward to the RSS feed! Curt