me.stub!(:code!)

Aug 10 2009

rails 2.2.2 => 2.3.3.1: two small discoveries

In my long overdue upgrade from 2.2.2 to 2.3.x I found a couple interesting, yet undocumented/unpublicized tidbits:

  • config.gem ‘BlueCloth’, :lib => ‘bluecloth’ should be config.gem ‘bluecloth’ (since gem install BlueCloth installs the old 1.x version while gem install bluecloth gives us the new and improved 2.x version). I was getting “uninitialized constant ActionView::Helpers::TextHelper::Markdown” when using markdown() in views.
  • I noticed in the changelog that CGI::Session::CookieStore was changed to ActionController::Session::CookieStore. I was curious… what happened to CGI:Session::CookieStore::TamperedWithCookie and the implementation of untamperable cookies? It was extracted in a cool class called ActiveSupport::MessageVerifier (also see ActiveSupport::MessageEncryptor)! For some custom untamperable cookie stuff, I had implemented a module called LevainCookies… but that’s no longer needed! Thanks Rails!
Comments (View)
blog comments powered by Disqus
Page 1 of 1