David Heinemeier Hansson
2005-Jan-04 13:39 UTC
[ANN] Rails 0.9.3: Optimistic locking, dynamic finders, Ruby 1.8.2 compatible
Rails is now fully compatible with Ruby 1.8.2, which we advice all to upgrade to as soon as possible. It contains a year''s worth of bug fixes for Ruby, so it''s great finally to be able to use the new version with Rails. But that is not all we got in store for 0.9.3. A few of the highlights are: * Automated optimistic locking: Just add the field @lock_version@ to your table and the associated class will be governed by optimistic locking that''ll raise an exception if a stale object attempts to save. * Dynamic finders: Finders like Person.find_by_user_name, Payment.find_by_amount, and even Person.find_by_user_name_and_password are now available with no code at all. Any column can be used and combined with other columns in the new dynamic finders. * MS SQL Server and DB2: Active Record now supports both Microsoft SQL Server (through ADO) and IBM''s DB2 databases. * MemCacheStore for sessions: You can now store sessions in Action Pack using Danga''s memcache technology. * Generators guard against reserved words:* Not only will ./script/generate model Thread be denied, you''ll also get a list of synonyms pulled live from WordNet! That''s just a small taste of the 35 changes, fixes, and features introduced with Rails 0.9.3. You can read the full story in the changelogs: * Active Record: http://ar.rubyonrails.com/files/CHANGELOG.html * Action Pack : http://ap.rubyonrails.com/files/CHANGELOG.html * Rails : http://rails.rubyonrails.com/files/CHANGELOG.html The new web presence =================== Since the last release, we''ve also launched a brand new website and visual identity for Rails. This includes the long awaited logo by John Hicks with a remix by Olivier Hericord. Check it all out at: http://www.rubyonrails.org Upgrading from Rails 0.9.2 to 0.9.3 ================================== There''s only one change you need to make in order to have your application updated from 0.9.2 to 0.9.3. In the config/environments/production.rb and config/environments/test.rb, you need to change: ActionController::Base.reload_dependencies = false ActiveRecord::Base.reload_associations = false ...to: Dependencies.mechanism = :require< And in config/environments/development.rb, you need to change: ActionController::Base.reload_dependencies = true ActiveRecord::Base.reload_associations = true ...to: Dependencies.mechanism = :load If you''re coming on from 0.8.x, you''ll need to go through the <a href="http://manuals.rubyonrails.com/read/book/3">Upgrading to 0.9 manual</a>. -- David Heinemeier Hansson, http://www.basecamphq.com/ -- Web-based Project Management http://www.rubyonrails.org/ -- Web-application framework for Ruby http://macromates.com/ -- TextMate: Code and markup editor (OS X) http://www.loudthinking.com/ -- Broadcasting Brain
Sean Leach
2005-Jan-04 17:52 UTC
Re: [ANN] Rails 0.9.3: Optimistic locking, dynamic finders, Ruby 1.8.2 compatible
Just tried ''gem update'' from 0.9.2 and got this: $ gem update Upgrading installed gems... Updating Gem source index for: http://gems.rubyforge.org Attempting remote upgrade of actionpack Attempting remote installation of ''actionpack'' Successfully installed actionpack, version 1.2.0 Installing RDoc documentation for actionpack-1.2.0... lib/action_controller/support/binding_of_caller.rb:4:25: Couldn''t find Continuation. Assuming it''s a module lib/action_controller/support/binding_of_caller.rb:36:21: Couldn''t find Binding. Assuming it''s a module lib/action_controller/scaffolding.rb:87:37: Skipping require of dynamic string: "#{model_id.id2name}" ERROR: While executing gem ... (NoMethodError) undefined method `find_module_named'' for nil:NilClass
Scott Barron
2005-Jan-04 18:00 UTC
Re: [ANN] Rails 0.9.3: Optimistic locking, dynamic finders, Ruby 1.8.2 compatible
On Tue, Jan 04, 2005 at 09:52:41AM -0800, Sean Leach wrote:> Just tried ''gem update'' from 0.9.2 and got this: > > $ gem update > Upgrading installed gems... > Updating Gem source index for: http://gems.rubyforge.org > Attempting remote upgrade of actionpack > Attempting remote installation of ''actionpack'' > Successfully installed actionpack, version 1.2.0 > Installing RDoc documentation for actionpack-1.2.0... > > lib/action_controller/support/binding_of_caller.rb:4:25: Couldn''t find > Continuation. Assuming it''s a module > > lib/action_controller/support/binding_of_caller.rb:36:21: Couldn''t find > Binding. Assuming it''s a module > > lib/action_controller/scaffolding.rb:87:37: Skipping require of dynamic > string: "#{model_id.id2name}" > ERROR: While executing gem ... (NoMethodError) > undefined method `find_module_named'' for nil:NilClassI got this off a clean gem install, then ran gem install rails again and it worked. Gremlins. -Scott
Tobias Luetke
2005-Jan-04 18:03 UTC
Re: [ANN] Rails 0.9.3: Optimistic locking, dynamic finders, Ruby 1.8.2 compatible
I got this when installing sqlite bindings a few days ago. Its only related to rdoc, the bindings worked great On Tue, 4 Jan 2005 13:00:59 -0500, Scott Barron <scott-HDQKq3lYuGDk1uMJSBkQmQ@public.gmane.org> wrote:> On Tue, Jan 04, 2005 at 09:52:41AM -0800, Sean Leach wrote: > > Just tried ''gem update'' from 0.9.2 and got this: > > > > $ gem update > > Upgrading installed gems... > > Updating Gem source index for: http://gems.rubyforge.org > > Attempting remote upgrade of actionpack > > Attempting remote installation of ''actionpack'' > > Successfully installed actionpack, version 1.2.0 > > Installing RDoc documentation for actionpack-1.2.0... > > > > lib/action_controller/support/binding_of_caller.rb:4:25: Couldn''t find > > Continuation. Assuming it''s a module > > > > lib/action_controller/support/binding_of_caller.rb:36:21: Couldn''t find > > Binding. Assuming it''s a module > > > > lib/action_controller/scaffolding.rb:87:37: Skipping require of dynamic > > string: "#{model_id.id2name}" > > ERROR: While executing gem ... (NoMethodError) > > undefined method `find_module_named'' for nil:NilClass > > I got this off a clean gem install, then ran gem install rails again and > it worked. Gremlins. > > -Scott > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Tobi http://www.hieraki.org - Open source book authoring http://blog.leetsoft.com - Technical weblog
Sean Leach
2005-Jan-04 18:06 UTC
Re: [ANN] Rails 0.9.3: Optimistic locking, dynamic finders, Ruby 1.8.2 compatible
Scott Barron wrote:> I got this off a clean gem install, then ran gem install rails again and > it worked. Gremlins.Yeah - I just did a ''gem install rails'' and it worked fine...> > -Scott > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Marcel Molina Jr.
2005-Jan-04 19:13 UTC
Re: [ANN] Rails 0.9.3: Optimistic locking, dynamic finders, Ruby 1.8.2 compatible
On Tue, Jan 04, 2005 at 01:03:51PM -0500, Tobias Luetke wrote:> I got this when installing sqlite bindings a few days ago. Its only > related to rdoc, the bindings worked great > > On Tue, 4 Jan 2005 13:00:59 -0500, Scott Barron <scott-HDQKq3lYuGDk1uMJSBkQmQ@public.gmane.org> wrote: > > On Tue, Jan 04, 2005 at 09:52:41AM -0800, Sean Leach wrote: > > > Just tried ''gem update'' from 0.9.2 and got this: > > > > > > $ gem update > > > Upgrading installed gems... > > > Updating Gem source index for: http://gems.rubyforge.org > > > Attempting remote upgrade of actionpack > > > Attempting remote installation of ''actionpack'' > > > Successfully installed actionpack, version 1.2.0 > > > Installing RDoc documentation for actionpack-1.2.0... > > > > > > lib/action_controller/support/binding_of_caller.rb:4:25: Couldn''t find > > > Continuation. Assuming it''s a module > > > > > > lib/action_controller/support/binding_of_caller.rb:36:21: Couldn''t find > > > Binding. Assuming it''s a module > > > > > > lib/action_controller/scaffolding.rb:87:37: Skipping require of dynamic > > > string: "#{model_id.id2name}" > > > ERROR: While executing gem ... (NoMethodError) > > > undefined method `find_module_named'' for nil:NilClassTo clarify, the first three are what Tobi said but that last one is bone fide. marcel -- Marcel Molina Jr. <marcel-WRrfy3IlpWYdnm+yROfE0A@public.gmane.org>
Dave Thomas
2005-Jan-05 05:32 UTC
Re: [ANN] Rails 0.9.3: Optimistic locking, dynamic finders, Ruby 1.8.2 compatible
On Jan 4, 2005, at 12:03 PM, Tobias Luetke wrote:> I got this when installing sqlite bindings a few days ago. Its only > related to rdoc, the bindings worked greatIs there something simple I could do to reproduce this? Dave