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.

Dmitry Polushkin's latest activity

Sunday, April 10 2011
1626 fieldWithErrors shouldn't use a div was updated in Ruby on Rails
  • Dmitry Polushkin
    Dmitry Polushkin commented at 11:42 PM

    error_messages_for no more in the rails core, it's separate plugin. So you may try to contact with maintainer, add pull request from your fork or something like...

Saturday, February 05 2011
4813 habtm _ids association with non numeric ids no longer allowed was updated in Ruby on Rails
  • Dmitry Polushkin
    Dmitry Polushkin commented at 2:05 AM

    I guess it now possible in Rails3.

            redefine_method("#{reflection.name.to_s.singularize}_ids=") do |new_value|
              pk_column = reflection.primary_...
Friday, February 04 2011
3768 Add :full_message option to validations was updated in Ruby on Rails
  • Dmitry Polushkin
    Dmitry Polushkin commented at 8:25 PM

    But only one thing, if you are generating short (standard) message, then it will be taken from short, if you are generating it using full_messages, then it will...

  • Dmitry Polushkin
    Dmitry Polushkin commented at 8:21 PM

    Rodrigo,

    I'm talking also about API :) (sorry_for_my_bad_english unless something_could_be_understood).

    Actually good idea to use :message => {:full => 'message...

  • Dmitry Polushkin
    Dmitry Polushkin commented at 5:09 PM

    Some off-topic (but anyway still related) about the ActiveResource. Look to this code to understand why it's bad:

    def from_array(messages, save_cache = false)
    ...
  • Dmitry Polushkin
    Dmitry Polushkin commented at 5:05 PM

    Rodrigo,

    How to translate full_message in this case? I mean how it will be connected to the different locales?

    In approach that I've listed above, it's possible...

  • Dmitry Polushkin
    • Tag changed from full_message, full_messages, patch, validations to activemodel, errors, full_message, full_messages, patch, validations
    by Dmitry Polushkin at 3:25 PM

    Nearly the same functionality can be found here: https://github.com/svenfuchs/i18n-message/

    1) Store symbols instead of string messages;
    2) Generate messages fo...

Monday, January 24 2011
3768 Add :full_message option to validations was updated in Ruby on Rails
  • Dmitry Polushkin
    • Tag changed from patch, validations to full_message, full_messages, patch, validations
    by Dmitry Polushkin at 5:50 PM

    Please update state of this feature.

6274 Ability to specify a custom translation for full_messages gone in Rails 3.x was updated in Ruby on Rails
Thursday, March 18 2010
3619 Conditional layouts ignore default application wide layout was updated in Ruby on Rails