[...] Support for Rails 2.3 – Now present in edge Hobo. [...]
Edge Hobo finally includes support for Rails 2.3. Edge Hobo should continue to be backwards compatible with Rails 2.2. This support is new, so please help us out by testing it on your application.
You can upgrade your application to use Rails 2.3 very simply:
sudo gem install rails -v 2.3.2
sed -i 's/2.2.2/2.3.2/g' config/environment.rb
rake rails:update
Rails 2.3 adds support for nested model forms. Hobo has included support for nested model forms for quite some time now. This has not been removed from Hobo, so you now have two mechanisms for nested model forms:
Hobo style:
has_many :stories, :accessible => true, :dependent => :destory
Rails 2.3 style:
has_many :stories, :dependent => :destory
accepts_nested_attributes_for :tasks, :allow_destroy => true
After Hobo 1.0 is released we may decide to migrate Hobo over to the Rails 2.3 style nested models. But Hobo 1.0 will support Rails 2.2 and therefore must include its own nested model support.
[...] Support for Rails 2.3 – Now present in edge Hobo. [...]
Great stuff, Bryan!
[...] Hobo finally supports Rails 2.3. More information, and instructions on how to upgrade are available in this post [...]
I am from java and hobo looks like magic to me. This is too good.
Working great for me so far. Note that the page is a little misleading, saying it tells you how to upgrade but providing no link as to how one actually can get Edge Hobo.
trying to work through the Agility tutorial on ubuntu 9.04 install.
I get
rake aborted!
no such file to load — /home/user/agility/app/controllers/application
Still researching this…
That’s usually a sign that rails 2.2 is trying to run a rails 2.3 application.
[...] Hobo 0.8.6 includes Rails 2.3 support. Rails 2.2 support has been maintained. Rails 2.1 support was dropped in 0.8.5. [...]
Any plans for Ruby 1.9 support?
i.e. (Mac OS X 10.5; ruby 1.9.1p243 (2009-07-16 revision 24175) [powerpc-darwin9.8.0]; Rails 2.3.3 )
/usr/local/lib/ruby/gems/1.9.1/gems/hobosupport-0.8.8/lib/hobosupport/enumerable.rb:41: warning: undefining object_id' may cause serious problemsend‘ may cause serious problem
/usr/local/lib/ruby/gems/1.9.1/gems/hobosupport-0.8.8/lib/hobo_support/enumerable.rb:41: warning: undefining
exists app/controllers/
exists app/helpers/
create app/views/users
exists test/functional/
create app/controllers/userscontroller.rb
create test/functional/userscontrollertest.rb
create app/helpers/users_helper.rb
Creating standard pages…
–> ruby script/generate hobofrontcontroller front –delete-index –add-routes
/usr/local/lib/ruby/gems/1.9.1/gems/hobosupport-0.8.8/lib/hobosupport/enumerable.rb:41: warning: undefining object_id' may cause serious problemsend‘ may cause serious problem
/usr/local/lib/ruby/gems/1.9.1/gems/hobosupport-0.8.8/lib/hobo_support/enumerable.rb:41: warning: undefining
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.3/lib/activesupport/dependencies.rb:105:in `rescue in const_missing’: uninitialized constant User::IncludeInSave (NameError)
I’m starting a Hobo based web for managing rugby players info (personal, technical, medical, nutritional, …).
I don´t know how to extend the Projects->Stories->Tasks examples to the many subordinated models like:
Players -> Personal info -> Id Documents
-> Technical records -> Technical Attributes
-> Physical performance -> Measurements
and so on.
Any help will be apreciated.
Thanks.
It shows me error ……
You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<
any ideas ??
Sandip, Lucas:
Your best bet for answers is to post details on what you’re trying to do, along with a backtrace, to the Hobo Users mailing list: http://groups.google.com/group/hobousers
Lucas: Ruby 1.9 support is still in the works. We hope it’s close.
Bryan
Just to make it clear — Rapid (the hobo tag library) does not yet support the Rails 2.3 mechanism for nested models.