David Heinemeier Hansson
2005-Jan-17 02:23 UTC
[ANN] Rails 0.9.4: Caching, filters, SQLite3…
Another incredibly strong release sees the light of day as we move one step closer to the mythical 1.0. This release tackles one of the five steps on the roadmap in form of caching as well as adding a bunch of other cool stuff. * *Render Caching:* Added an extensive caching module that offers three levels of granularity (page, action, fragment) and a variety of stores (file, memory, DRb, MemCached). * *Conditional filters:* It''s now possible to limit the actions that a given filter will apply to within a controller using either :only or :except. Like, <code>before_filter :authorize, :only => [ :edit, :delete ]</code> * *Associating unsaved objects:* Associations between unsaved objects makes it much easier to build big graphs that only makes sense to be saved together. * *Database compatibility:* SQLite3 is now supported by the sqlite adapter and MySQL 4.1.1+ is also supported by the included Ruby/MySQL driver. * *Numeric bytes and time:* Rails has taken upon itself to extend Ruby in a few spots, such as adding the possibility for expressions like <code>45.kilobytes + 2.3.megabytes</code> and <code>45.minutes + 2.hours + 1.fortnight</code>. Those were the highlights, but Rails 0.9.4 includes no less than 50 changes, fixes, and features. 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 This release shouldn''t require any changes to your application if you''re coming from Rails 0.9.3. -- 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
Hmm, the caching in actionpack 1.3.0 seems to have a bug. Where can I report this? The following line seems to be incorrect: (i''m running gems rails) action_controller/caching.rb:124 it says: !@request.method.post? && ... and gives a method not found for :get:Symbol error by changing this line to: !@request.post? && ... the bug seems to be fixed. Kind Regards, Flurin David Heinemeier Hansson wrote:> Another incredibly strong release sees the light of day as we move one > step closer to the mythical 1.0. This release tackles one of the five > steps on the roadmap in form of caching as well as adding a bunch of > other cool stuff. > > * *Render Caching:* Added an extensive caching module that offers > three levels of granularity (page, action, fragment) and a variety of > stores (file, memory, DRb, MemCached). > > * *Conditional filters:* It''s now possible to limit the actions that a > given filter will apply to within a controller using either :only or > :except. Like, <code>before_filter :authorize, :only => [ :edit, > :delete ]</code> > > * *Associating unsaved objects:* Associations between unsaved objects > makes it much easier to build big graphs that only makes sense to be > saved together. > > * *Database compatibility:* SQLite3 is now supported by the sqlite > adapter and MySQL 4.1.1+ is also supported by the included Ruby/MySQL > driver. > > * *Numeric bytes and time:* Rails has taken upon itself to extend Ruby > in a few spots, such as adding the possibility for expressions like > <code>45.kilobytes + 2.3.megabytes</code> and <code>45.minutes + > 2.hours + 1.fortnight</code>. > > Those were the highlights, but Rails 0.9.4 includes no less than 50 > changes, fixes, and features. 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 > > This release shouldn''t require any changes to your application if > you''re coming from Rails 0.9.3. > -- > 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 > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Alexey Verkhovsky
2005-Jan-17 14:00 UTC
Re: [Rails] [ANN] Rails 0.9.4: Caching, filters, SQLite3…
F. Egger wrote:> Where can I report this?Here: http://dev.rubyonrails.com/newticket Alex
David Heinemeier Hansson
2005-Jan-17 18:12 UTC
Re: [ANN] Rails 0.9.4: Caching, filters, SQLite3…
> Hmm, the caching in actionpack 1.3.0 seems to have a bug.Thanks for spotting it. It has been fixed and new beta gems published. Seems like we caught a few snags pushing out 0.9.4, so 0.9.4.1 will make it out later today. -- 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
According to David Heinemeier Hansson:> Those were the highlights, but Rails 0.9.4 includes no less than 50 > changes, fixes, and features. You can read the full story in the > changelogs:No changes in ActiveMailer ? My application is not getting an error from TMail when trying to send mail... controllers/bada_controller.rb: ----- def submit @missing = check_for_mandatory(@params) if @missing.length != 0 then render "/bada/registration" else Notification.server_settings[:address] = "relay.eurocontrol.fr" Notification.server_settings[:domain] = Host.hostname Notification.deliver_form_data(@params) render "/bada/form_ok" end end end ----- models/notification.rb: ----- def form_data(parameters) @recipients = BCC @from = FROM @to = RECIPIENTS @headers[''bcc''] = BCC.to_s @headers[''user-agent''] = "Rails/bada-1.0" @subject = "New BADA request from #{parameters[''l_name'']} by #{parameters[''a_email'']}" @body = parameters.dup end end ----- Log: NoMethodError (undefined method `from_address'' for #<TMail::Mail:0x1495898>): /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:131:in `perform_delivery_smtp'' /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:129:in `start'' /opt/local/lib/ruby/1.8/net/smtp.rb:316:in `start'' /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:129:in `perform_delivery_smtp'' /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:124:in `send'' /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:124:in `deliver'' /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:100:in `method_missing'' /app/controllers/bada_controller.rb:79:in `submit'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/base.rb:596:in `send'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/base.rb:596:in `perform_action_without_filters'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/filters.rb:294:in `perform_action_without_benchmark'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/benchmarking.rb:30:in `perform_action_without_rescue'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/benchmarking.rb:30:in `measure'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/benchmarking.rb:30:in `perform_action_without_rescue'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/rescue.rb:75:in `perform_action'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/base.rb:263:in `send'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/base.rb:263:in `process'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/base.rb:241:in `process'' /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/dispatcher.rb:40:in `dispatch'' /Volumes/Users/www/snuadh/bada/public/dispatch.rb:10 /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:101:in `load'' /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:101:in `handle_dispatch'' /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:80:in `handle_mapped'' /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:34:in `do_POST'' /opt/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'' /opt/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'' /opt/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /opt/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /opt/local/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'' /opt/local/lib/ruby/1.8/webrick/server.rb:144:in `start'' /opt/local/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'' /opt/local/lib/ruby/1.8/webrick/server.rb:94:in `start'' /opt/local/lib/ruby/1.8/webrick/server.rb:89:in `each'' /opt/local/lib/ruby/1.8/webrick/server.rb:89:in `start'' /opt/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' /opt/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:19:in `dispatch'' ./script/server:49 -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto-0kjVc+YyuDZX+h8frlqCcVAUjnlXr6A1@public.gmane.org Darwin snuadh.freenix.org Kernel Version 7.7.0: Sun Nov 7 16:06:51 PST 2004
According to Ollivier Robert:> My application is not getting an error from TMail when trying to send > mail...The fix is in ticket #493, thanks to octopod on freenode/#rubyonrails. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto-0kjVc+YyuDZX+h8frlqCcVAUjnlXr6A1@public.gmane.org Darwin snuadh.freenix.org Kernel Version 7.7.0: Sun Nov 7 16:06:51 PST 2004