News for hackers. Stuff that matters.
Re:Ruby on Rails 2.3.6 Released by mhartl on Sunday May 23, 2010 @06:05PM (#1373151)
This morning I updated the Ruby on Rails Tutorial book (http://www.railstutorial.org/) accordingly. Happily, since the changes between versions were minor, this mainly involved

  s/2\.3\.5/2\.3\.6/
:-)
Re:Ruby on Rails 2.3.6 Released by rjett on Sunday May 23, 2010 @07:13PM (#1373315)
I've been going through Rails Tutorial for the past few weeks. You definitely have a gift for communicating clearly and effectively. I would strongly recommend Rails Tutorial to anyone looking to get started with Rails.
Re:Ruby on Rails 2.3.6 Released by mhartl on Monday May 24, 2010 @12:15AM (#1373768)
Thanks!
Re:Ruby on Rails 2.3.6 Released by subbu on Sunday May 23, 2010 @06:35AM (#1372108)
Some nice changes there. Namespaces make it even more easy to work with legacy databases or mixing rails tables with say wordpress which prefixes all its tables with 'wp_'. Another nifty change w.r.t MySQL: positioning using :first => true and :after => :other_column. That allows us to keep the attributes in a nice order. Otherwise all the new columns used go below created_at and updated_at which was kind of ugly.
Re:Ruby on Rails 2.3.6 Released by dirtyhand on Sunday May 23, 2010 @10:13AM (#1372294)
Awesome, the order of the DB columns was my biggest pet peeve with migrations
Re:Ruby on Rails 2.3.6 Released by sailormoon on Sunday May 23, 2010 @06:20AM (#1372102)
Argh, my pet ticket didn't make it in: https://rails.lighthouseapp.com/projects/8994/tickets/2188-i...

Still no 1.9 for me, then :/

Re:Ruby on Rails 2.3.6 Released by ionfish on Sunday May 23, 2010 @07:38AM (#1372142)
I switched to Rails 3 (and Ruby 1.9.2-pre, which seems a lot more solid than 1.9.1 anyway) to get round this.
Re:Ruby on Rails 2.3.6 Released by sailormoon on Sunday May 23, 2010 @10:07AM (#1372281)
So have I actually, on some smaller projects, but it's going to be a major change to switch over larger ones. I'll be sticking on 2.3 with them for the time being.
Re:Ruby on Rails 2.3.6 Released by mtarnovan on Sunday May 23, 2010 @07:07AM (#1372116)
Same here. There are also other encoding related bugs which I hoped to see fix.

But all in all, this is a solid release, with many fixes and improvements. Kudos to the people who made this possible.

Re:Ruby on Rails 2.3.6 Released by wycats on Sunday May 23, 2010 @02:20PM (#1372706)
I've been doing a lot of the encoding work on Rails 3. Curious what your issues are so I can be sure we get it right for Rails 3
Re:Ruby on Rails 2.3.6 Released by mtarnovan on Sunday May 23, 2010 @03:18PM (#1372793)
The latest problem I hit seems to be related to logging. It goes away if I replace line 99 in buffered_logger.rb to read:

   @log.write(old_buffer.join.force_encoding(Encoding.default_external))
Without this ad-hoc "fix" (well it's not a fix, I was using it just to confirm the source of the bug) I'm seeing:

   Encoding::UndefinedConversionError: "\xC4" from ASCII-8BIT to UTF-8 
all over the place (every time the log is flushed).

p.s. just to clarify, I was testing an app that currently runs in production on ruby 1.8.7 + rails 2.3.5 with rails 2.3.6 and ruby 1.9.2-head. 30 or so tests fail and about 70 have errors. I'll be sure to report any new bugs I find.

Re:Ruby on Rails 2.3.6 Released by wycats on Sunday May 23, 2010 @06:33PM (#1373198)
I'd be interested to learn where the BINARY data is coming from in the first place. For reasons I outlined in a recent blog post force_encoding is almost never a reliable general-purpose solution
Re:Ruby on Rails 2.3.6 Released by cgoddard on Tuesday May 25, 2010 @03:46PM (#1378365)
I run into the same problem when trying to submit any unicode data through ActiveRecord. I will try this fix and see if it helps.