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.

Ivan Torres (mexpolk)'s latest activity

Wednesday, July 28 2010
5112 if destroy is called on a new object then exception should be raised was updated in Ruby on Rails
  • Ivan Torres (mexpolk)
    Ivan Torres (mexpolk) commented at 11:03 PM

    I'm sorry to be such a pain about this, but...

    I think that to keep consistency across the framework, I rather suggest using destroy! (with a bang) if you need ...

Thursday, July 15 2010
5108 Add .rvmrc file to .gitignore for Ruby on Rails code was updated in Ruby on Rails
Wednesday, July 14 2010
5112 if destroy is called on a new object then exception should be raised was updated in Ruby on Rails
  • Ivan Torres (mexpolk)
    Ivan Torres (mexpolk) commented at 9:43 PM

    Yes, I know that my case is unlikely to happen. But I rather prefer not have to deal with additional validations @post.delete if @post.persisted?

    but is up to y...

  • Ivan Torres (mexpolk)
    • Tag changed from rails 3, activerecord to rails 3, activerecord, delete, delete_all, persistence
    • Assigned user changed from José Valim to Neeraj Singh
    by Ivan Torres (mexpolk) at 9:28 PM

    Hi Neeraj,

    I'm not that sure about that. Right now what AR does is to check if the record is persisted before trying to reach the database. That's why it does n...

5110 Dirty Attributes and string manipulation was updated in Ruby on Rails
  • Ivan Torres (mexpolk)
    Ivan Torres (mexpolk) commented at 4:54 PM

    Doing some tests it turns out that if the String instance is the same, then the change is not detected. If the string is another instance it works as expected:

    ...
  • Ivan Torres (mexpolk)
    • Tag changed from rails 2.3.8, activerecord, dirty to rails 2.3.8, activerecord, dirty, rails3
    by Ivan Torres (mexpolk) at 3:11 PM

    You're right, the strangest thing is that the original value is lost:

    @project.title_was => "helloWorld"

    Also this affects Rails 3

5099 :include_blank and :prompt options for #select not HTML safe was updated in Ruby on Rails
Tuesday, July 13 2010
5091 Creating a model named Format result in code 406 was updated in Ruby on Rails
5108 Add .rvmrc file to .gitignore for Ruby on Rails code was created in Ruby on Rails
  • Ivan Torres (mexpolk)
    Ivan Torres (mexpolk) created the ticket at 7:47 PM

    Wouldn't be nice to add .rvmrc to the .gitignore file on the root folder of Rails?

    That way I can setup multiple rubies+gems to test multiple configurations (ru...

5099 :include_blank and :prompt options for #select not HTML safe was updated in Ruby on Rails
  • Ivan Torres (mexpolk)
    • Tag changed from actionpack, formtaghelper, select to actionpack, formoptionshelper, grouped_options_for_select, select
    by Ivan Torres (mexpolk) at 4:11 PM

    confirmed... here's the patch