Notes from Rails 3 bugmash
Blazing Cloud hosted a “Do One Thing for Rails 3″ bugmash and Workshop curriculum hacksession. We had four participants:
- Melanie Archer (@mejarc)
- Karen Zeller (@karenzeller8)
- Sharon Lee
- Sarah Allen (@ultrasaurus)
We followed wycats instructions for getting started. Some pre-conditions that weren’t spelled out:
- Ruby 1.8.7 is required, which implies a re-install of rubygems (you need 1.3.5+) and your gems as well [sudo] gem install bundler
Rails 3 discoveries
1) Karen and I discovered that cucumber doesn’t work with Rails 3 — the generator isn’t available so we couldn’t even get started. I added that to the gem compatibility list. Also, I didn’t report it, but noticed that the script/generate help isn’t given when you pass no params.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$ ./script/generate cucumber
Could not find generator cucumber.
$ script/generate
Please select a generator.
Builtin: active_record:migration, active_record:model,
active_record:observer, active_record:session_migration, app,
controller, erb:controller, erb:mailer, erb:scaffold, generator, helper,
integration_test, mailer, metal, migration, model, model_subclass,
observer, performance_test, plugin, resource, scaffold,
scaffold_controller, session_migration, stylesheets, test_unit:controller,
test_unit:helper, test_unit:integration, test_unit:mailer,
test_unit:model, test_unit:observer, test_unit:performance,
test_unit:plugin, test_unit:scaffold. |
2) Sharon discovered what appears to be an incompatibility between bundler and XP Home.
3) The very first time I did scaffold, I got an “ActionController::InvalidAuthenticityToken” error when I ran the app and tried to create a new record, but when I dropped the database and tried to reproduce it worked fine.
Things we learned that have nothing to do with Rails 3
- bundler is not only a gem, but also a plugin to RubyGems
- cucumber (post 0.4.5) is split into two gems: cucumber and cucumber-rails
3 Comments
Yeah that cucumber, and cucumber-rails split has caused some issues for me doign Radiant work.
But very interesting to know about the authenticity token and generator help!
What was your overall thought re: Rails 3?
I was impressed that (1) there are some easy steps to try out the leading edge of Rails and (2) they were well-documented. On Rails itself, I didn’t get that far because I got distracted with the generator bugs. Other stuff did seem to work. My assessment is that it’s still bleeding edge right now. I’ll try it to help move Rails forward, but I don’t expect to be teaching it or using it for real apps anytime soon.
Thanks for that write-up. Helpful.
One Trackback
[...] Notes from Rails 3 bugmash (01/17/10) — Another set of plugin/gem compatibility notes and Rails 3 discoveries. [...]