Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Szymon Nowak's latest activity

Sunday, October 03 2010
5199 respond_with returns " " on PUT and DELETE verb was updated in Ruby on Rails
  • Szymon Nowak
    Szymon Nowak commented at 6:12 PM

    I've ran into this issue recently as well.

    The problem is with the Responder#api_behavior method:

    def api_behavior(error)
      raise error unless resourceful?
    
      ...
Saturday, October 02 2010
5748 db:seed failing with multibyte characters was updated in Ruby on Rails
  • Szymon Nowak
    Szymon Nowak commented at 8:51 PM

    Just add the following line as the first line in the file:

    # -*- coding: utf-8 -*-
    

    and it will work.

    You can probably set your editor to do add this line auto...

Friday, August 27 2010
5392 column_definitions method being called before and after every single SQL stat... was updated in Ruby on Rails
  • Szymon Nowak
    Szymon Nowak commented at 1:28 PM

    Guys, have you tried running the same queries in production environment? It seems that Rails is properly caching column info there and these queries don't show ...

  • Szymon Nowak
    Szymon Nowak commented at 8:30 AM

    I got the same problem after switching to Rails 3.

5470 Inconsistent order of columns in SQL WHERE clause in dynamic finders and scopes was updated in Ruby on Rails
  • Szymon Nowak
    Szymon Nowak commented at 10:12 AM

    It turns out that all methods generate the same query on Ruby 1.9 where hashes are ordered. I'm using 1.8.7 and that's why it generates different queries.

  • Szymon Nowak
    Szymon Nowak commented at 9:25 AM

    Me too. I think that the first 2 examples should generate SQL as in the last one.

  • Szymon Nowak
    Szymon Nowak created the ticket at 8:17 AM

    There's a minor problem with the way SQL is generated.

    Venue.find_all_by_city_id_and_category_id(1, 1)
    SELECT "venues".* FROM "venues" WHERE ("venues"."categor...
Monday, May 31 2010
4737 [PATCH] Allow to use procs when specifying defaults for routes was created in Ruby on Rails
  • Szymon Nowak
    Szymon Nowak created the ticket at 1:44 PM

    Hey,

    with this patch it's possible to do something like this:

    get ":locale/:book/pages/:page(/:version)" => "pages#show",
        :as => :page,
        :defaults => { ...
Thursday, April 08 2010
4336 Ruby1.9: submitted string form parameters with non-ASCII characters cause enc... was updated in Ruby on Rails
  • Szymon Nowak
    Szymon Nowak commented at 12:08 PM

    In our projects (Rails 2.3.5) we're currently using something like this to solve the problem with params:

      before_filter :force_utf8_params
      
      def force_utf...
Tuesday, February 23 2010
4040 Route globbing broken in Rails 3 was created in Ruby on Rails
  • Szymon Nowak
    Szymon Nowak created the ticket at 9:53 AM

    Not sure if it's a problem with Rails code or documentation.

    match 'match/*glob' => 'posts#example'
    
    ActionController::Routing::Routes.recognize_path('match/1/...