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.

Adam Cigánek's latest activity

Friday, October 17 2008
1232 Allow use of symbols for :type option of ActionController::Streaming#send_fil... was updated in Ruby on Rails
  • Adam Cigánek
    Adam Cigánek commented at 9:58 PM

    Sorry, the formatting got screwed up:

    
    send_file("/foo/bar/whatever.png", :type => "image/png")
    

    you can now do this:

    
    send_file("/foo/bar/whatever.png", :t...
  • Adam Cigánek
    Adam Cigánek created the ticket at 9:55 PM

    Attached patch adds support for symbols for :type options of send_file and send_data. Instead of this:

    @@@ruby send_file("/foo/bar/whatever.png", :type => "imag...

Thursday, September 25 2008
1034 ActiveSuport::Inflector#parameterize should strip leading/trailing dashes was updated in Ruby on Rails
  • Adam Cigánek
    Adam Cigánek commented at 5:36 PM

    OK, so we need a name for the 'asciify' method (not asciify ;))

    What about transliterate?

  • Adam Cigánek
    Adam Cigánek commented at 10:18 AM

    Iconv has more robust transliteration. For example, the German character "ß" is transliterated as "ss" in Iconv (which is correct), but is simply removed if mb_...

Tuesday, September 23 2008
1096 Rails slice() helper incompatibility in Rails 2.1.1 was updated in Ruby on Rails
  • Adam Cigánek
    Adam Cigánek commented at 11:11 AM

    ...and here is the fix.

  • Adam Cigánek
    Adam Cigánek commented at 11:02 AM

    Failing test case is attached.

  • Adam Cigánek
    Adam Cigánek commented at 9:53 AM

    I guess the problem is that params is HashWithIndifferentAccess but slice gives back just plain Hash. Perhaps slice should give return of the same type as it's ...

Monday, September 22 2008
1034 ActiveSuport::Inflector#parameterize should strip leading/trailing dashes was updated in Ruby on Rails
  • Adam Cigánek
    Adam Cigánek commented at 10:34 PM

    Hello,

    here is the updated patch.

Friday, September 12 2008
1034 ActiveSuport::Inflector#parameterize should strip leading/trailing dashes was updated in Ruby on Rails
  • Adam Cigánek
    Adam Cigánek commented at 5:48 PM

    just fixed error in commit message

  • Adam Cigánek
    Adam Cigánek commented at 5:42 PM

    Ok, great,

    So this is a new patch that replaces the original code of parameterize with code from slugalizer (just slightly modified for readability). It also ad...