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.

Lars Kuhnt's latest activity

Thursday, September 02 2010
5534 Controller breaks when an action is named 'config' was created in Ruby on Rails
  • Lars Kuhnt
    Lars Kuhnt created the ticket at 2:58 PM

    Hi,

    I spend some time to figure out that an action named 'config' breaks the whole controller. A cryptic exception is raised whenever you try to access any acti...

Wednesday, September 01 2010
5508 OpenStruct objects can no longer be used in form helpers was updated in Ruby on Rails
  • Lars Kuhnt
    Lars Kuhnt commented at 9:06 AM

    Thanks for the effort and clarification.

    Maybe OpenStruct should override respond_to? like above because it responds to all methods, but that does not belong he...

Tuesday, August 31 2010
5508 OpenStruct objects can no longer be used in form helpers was updated in Ruby on Rails
  • Lars Kuhnt
    Lars Kuhnt commented at 5:57 PM

    Thanks Samuel, but I was wondering why rails 3 forces me to define the attributes specifically. If the object does not respond to the called method, an undefine...

  • Lars Kuhnt
    Lars Kuhnt created the ticket at 9:04 AM

    Hi,

    with rails 3 it is no longer possible to use OpenStruct objects as flexible models in form helpers.

    For example:

    <%= form_for OpenStruct.new, :url => notif...
Tuesday, August 24 2010
5439 ActiveRecord::Timestamp#touch fails when no updated_at/on column is present was created in Ruby on Rails
  • Lars Kuhnt
    Lars Kuhnt created the ticket at 12:12 PM

    Hi,

    ActiveRecord::Timestamp#touch generates malformed SQL when the models table misses an updated_at/on column.

    For example, when I execute

      Game.first.touch
    
    ...
Wednesday, August 18 2010
5401 String Enumerator in an ERB template outputs the string was created in Ruby on Rails
  • Lars Kuhnt
    Lars Kuhnt created the ticket at 11:25 AM

    Hi,

    when you iterate over an Enumerator created on a String in an ERB template, the string will be rendered in the view.

    For example:

        <% "You shouldnt see ...
Tuesday, August 03 2010
2346 named_scope doesn't override default_scope's :order key was updated in Ruby on Rails
  • Lars Kuhnt
    Lars Kuhnt commented at 10:13 AM

    I am still having this Problem on 2-3-stable with polymorphic has_many associations.

    Here is the gist