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.

Andrea Campi's latest activity

Friday, November 05 2010
5922 Functional tests cannot add a route was created in Ruby on Rails
  • Andrea Campi
    Andrea Campi created the ticket at 5:03 PM

    I may be overlooking something, but:

    I have a functional test that uses its own mock controller, which prepares some data and ends up calling a helper.
    Among ot...

Friday, October 22 2010
5368 weird behavior on expire_page when you are running under namespace was updated in Ruby on Rails
  • Andrea Campi
    Andrea Campi commented at 3:44 PM

    But calling just posts in the expire_page and not admin/posts will expire admin/posts. For me it's against of the principle of least surprise. Rails inferrers ...

5307 Module table_name_prefix not respected for using set_table_name was updated in Ruby on Rails
  • Andrea Campi
    • Tag changed from 3.0.0.rc, active_record, patch, set_table_name, table_name_prefix to active_record, patch, rails3, set_table_name, table_name_prefix
    by Andrea Campi at 2:47 PM

    Not sure what's the difference between me and you, but I still cannot reproduce on either 3.0.0 or 3.0.1 (or edge).
    Copy and pasting your exact code gives me:

    ...
Wednesday, October 20 2010
5368 weird behavior on expire_page when you are running under namespace was updated in Ruby on Rails
  • Andrea Campi
    Andrea Campi commented at 4:28 PM

    Your controller is named Admin::PostsController. That's all the namespacing Rails needs to see.

    If that's not the case, you need to show more of your controller...

Tuesday, October 19 2010
4969 Fixing config.action_dispatch.x_sendfile_header default was updated in Ruby on Rails
  • Andrea Campi
    • Tag changed from patch, tagged:x-sendfile to actiondispatch, patch, x-sendfile
    by Andrea Campi at 10:22 PM
  • Andrea Campi
    Andrea Campi commented at 10:22 PM

    @Bertg: feel free to provide a patch that changes both the code and the documentation. Note that Rails is not disabling auto-detection; the developer is, if she...

5319 adding options to erb scaffold generator to include or skip custom views / te... was updated in Ruby on Rails
  • Andrea Campi
    • Tag changed from patch to generators, patch
    by Andrea Campi at 10:15 PM

    Try looking at @railties/test/generators/scaffold_generator_test.rb@, as well as the documentation for run_generators in @railties/lib/rails/generators/test_cas...

5368 weird behavior on expire_page when you are running under namespace was updated in Ruby on Rails
  • Andrea Campi
    Andrea Campi commented at 10:09 PM

    The Sweeper itself may not be in the Admin namespace, but you are assigning it to the @Admin::PostsController@; when #expire_page is invoked, it invoked @#url_f...

1485 json_escape eats away double quotes was updated in Ruby on Rails
  • Andrea Campi
    • Assigned user set to Neeraj Singh
    by Andrea Campi at 10:00 PM
Monday, October 18 2010
5395 Enhancement on nested forms: send params as array was updated in Ruby on Rails
  • Andrea Campi
    Andrea Campi commented at 7:20 AM

    Looks like your HTML markup got lost, can you try again?