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.

Rodrigo Rosenfeld Rosas's latest activity

Thursday, February 25 2010
3768 [PATCH] Add :full_message option to validations was updated in Ruby on Rails
  • Rodrigo Rosenfeld Rosas
    Rodrigo Rosenfeld Rosas commented at 1:48 PM

    Sorry, I didn't understand. How much dryier can this be? All validators just call the message method from Validator (from which them all inherit from). That met...

  • Rodrigo Rosenfeld Rosas
    Rodrigo Rosenfeld Rosas commented at 12:00 PM

    I have dryied the code. The part I have changed in all validators were necessary because it was not modular, so I couldn't change just one place. See an example...

  • Rodrigo Rosenfeld Rosas
    Rodrigo Rosenfeld Rosas commented at 3:34 AM

    Here is a new patch (still lacking documentation and tests) using your suggested approach.

    Should I post to rails core list again asking for help on documentati...

Wednesday, February 24 2010
4049 Improve HTML generated by Scaffold was created in Ruby on Rails
  • Rodrigo Rosenfeld Rosas
    Rodrigo Rosenfeld Rosas created the ticket at 7:50 PM

    Just small improvements, following best practices for HTML writing:

    b -> strong
    p -> div for non-paragraphs

    And added a meta for defining charset to utf-8, as i...

3768 [PATCH] Add :full_message option to validations was updated in Ruby on Rails
  • Rodrigo Rosenfeld Rosas
    Rodrigo Rosenfeld Rosas commented at 2:33 PM

    You're right. When I tested subclassing String, I probably missed the message parameter in initialize.

    But it is still a hack in the sense that unexpected thing...

  • Rodrigo Rosenfeld Rosas
    Rodrigo Rosenfeld Rosas commented at 10:30 AM

    Valim, I have first tried the list, as you can see in the link I've posted in my first comment, but I didn't get any help there.

    I had already discussed the iss...

Thursday, January 21 2010
3768 [PATCH] Add :full_message option to validations was updated in Ruby on Rails
  • Rodrigo Rosenfeld Rosas
    Rodrigo Rosenfeld Rosas commented at 8:17 PM

    There is no documentation nor test files in the patch because I need some help about how to write them.

    I've asked for instructions in the topic below but got n...

  • Rodrigo Rosenfeld Rosas
    Rodrigo Rosenfeld Rosas created the ticket at 8:12 PM

    Follows a patch to add a full_message option to validations.

    Currently Rails don't allow full control over validation messages without making use of I18n and ev...

Wednesday, September 02 2009
1687 Flexible formatting for AR validation error messages was updated in Ruby on Rails
  • Rodrigo Rosenfeld Rosas
    Rodrigo Rosenfeld Rosas commented at 12:29 AM

    I've just realized this mistake in the last message:

    validates_presence_of :login, :message => 'You must specify a user name.'

    Of course, I meant:

    validates_pre...

Monday, August 31 2009
1687 Flexible formatting for AR validation error messages was updated in Ruby on Rails
  • Rodrigo Rosenfeld Rosas
    Rodrigo Rosenfeld Rosas commented at 8:07 PM

    I'm afraid I was not clear in my last message. What I meant for often, is that :full_message would be rarely used inside a project, but that projects will often...