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.

Daniel Lopes's latest activity

Saturday, April 16 2011
6705 I think select_tag should also have a prompt like select. was created in Ruby on Rails
  • Daniel Lopes
    Daniel Lopes created the ticket at 2:52 AM

    I'm creating this ticket to send a patch to make select_tag behave like select method from form_builder's.

    I tried to use prompt in select_tag but it didn't wor...

Friday, October 22 2010
5368 weird behavior on expire_page when you are running under namespace was updated in Ruby on Rails
  • Daniel Lopes
    Daniel Lopes commented at 4:09 PM

    Now I got what are you trying to explain. In the context of views is pretty clear when the view that call's link_to (and uses url for behind) will take his own ...

Wednesday, October 20 2010
5368 weird behavior on expire_page when you are running under namespace was updated in Ruby on Rails
  • Daniel Lopes
    Daniel Lopes commented at 11:50 PM

    I attached an app for the example. In the source folder I have a PostsController and an Admin::PostsController. My admin calls the cache_sweeper method and say ...

  • Daniel Lopes
    Daniel Lopes commented at 2:04 PM

    Actually I any place I reference the admin namespace in the sweeper, neither in the controllers. The sweeper will expire the Admin controller without I said to ...

Tuesday, October 19 2010
5368 weird behavior on expire_page when you are running under namespace was updated in Ruby on Rails
  • Daniel Lopes
    Daniel Lopes commented at 2:36 PM

    Andrea, I didn't said anything about the Admin namespace in the Sweeper. That is the reason why I think this is undesired. What I think is the right thing to ex...

Thursday, August 12 2010
5368 weird behavior on expire_page when you are running under namespace was updated in Ruby on Rails
  • Daniel Lopes
    Daniel Lopes commented at 10:24 PM

    To force Rails to don't use admin in path what I did was:

    expire_page :controller => "/posts", :action => "show", :only_path => true

    But "/posts" is as strange ...

  • Daniel Lopes
    Daniel Lopes created the ticket at 10:18 PM

    [This ticket is not a bug, somebody could close it?]

    Today when I'm testing Rails 3.0 I found a behavior that I think is bug.

    If you have a blog with an admin a...

Sunday, March 14 2010
4168 url_for failing with singular resource was updated in Ruby on Rails
  • Daniel Lopes
    Daniel Lopes commented at 8:28 PM

    Thanks Valim.

    About the bug, it happens because url_for call the named route when you send a record to it. In some context I don't think it's wrong, like this:
    ...

  • Daniel Lopes
    Daniel Lopes commented at 5:44 PM

    To be more specific the options passed to url_for is:

    {:action=>"show", :controller=>"accounts", :format=>#, :use_route=>:account, :only_path=>false}

  • Daniel Lopes
    Daniel Lopes commented at 5:42 PM

    Why this bug was assigned to milestone 3.0? It shouldn't be released with Rails 2.3.6?

    The problem is with url_for method, when we send a active record object t...