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.

This project is archived and is in readonly mode.

Activity (RSS)

Thursday, May 08 2008
136 [PATCH] Allow session(:on) was updated 1 earlier change…
  • Jim James
    Jim James commented at 3:55 PM

    Ran into this myself.

    +1

    Jim.

144 [PATCH] Bug in Rails Route Globbing was created
  • Chris Roos
    Chris Roos created the ticket at 4:55 PM

    Slashes in the 'globbed' parameters are not escaped. The patch contains two modified tests, to illustrate the bug, and a fix.

    Given this route:

    map.connect ...

139 [PATCH] Bug: Earlier Check for Session in Forgery Protection was updated
123 [patch] Fix to_xml serialization in some rare cases. was updated
  • Jonathan del Strother
    Jonathan del Strother commented at 12:10 PM

    The delay is pretty normal. You generally need 3 people to vote +1 on your patch before it gets accepted. Best way of doing that is by hopping on the #rails-...

  • Adam Sindelar
    Adam Sindelar commented at 11:58 AM

    Hey,

    please don't take this the wrong way, I'm not trying to bug anyone... But what are the things I should do in order to have this patch accepted into the r...

142 [PATCH] belongs_to association not updated when assigning to foreign key was created
  • mattwestcott
    mattwestcott created the ticket at 10:06 AM

    When using a belongs_to association, assigning to the foreign key attribute doesn't update the associated object (or mark a previously loaded

    one as stale) un...

117 Add assert_not_valid to model assertions was updated
  • josh
    • State changed from new to invalid
    • Assigned user set to josh
    by josh at 6:39 AM

    I think we saw assert_invalid before, and it was turned down.

    We already trimmed out a bunch of superfluous assert_* response helpers. When there is a helper ...

121 Add assert_showing_flash was updated
  • josh
    • State changed from new to invalid
    • Assigned user set to josh
    by josh at 6:25 AM

    Implementation seems a bit much. Is there anyway we can get this "flash.now["test_now"] = ">#{flash["test_now"]}<"" api as well? I rather not add yet another "...

138 script/generate glitch for controllers in modules was updated
  • josh
    • Assigned user set to josh
    • State changed from new to open
    by josh at 6:20 AM

    Verified. Post a fix w/ tests and I'll get it in for ya.

    $ script/generate controller admin::people
          create  app/controllers/admin
          create  app/he...
Calling ActiveRecord#inspect on an un... was committed by Repository at 6:07 AM
9 Adding records to a has_many collection does not work on initialization was updated
  • Repository
    • State changed from open to resolved
    by Repository at 6:07 AM

    (from [bcb090c56b842a76397e0ea32f54c942fd11910e]) Calling ActiveRecord#inspect on an unloaded association won't wipe the collection [#9 state:resolved]

    Signed...

10 Immediate flash values not accessible in tests was updated
  • josh
    josh commented at 5:51 AM

    I'm getting some failing tests now. I have a feeling its related to one of Pratik's deprecate instance variables commits.

      1) Failure:
    test_flash(Components...
105 Assigning strings with timezone information to timezone aware attributes stri... was updated
  • Geoff Buesing
    Geoff Buesing commented at 5:19 AM

    @Scott: thanks for the updated patch; I'll try to pull this in in the next couple of days.

    @Dan: String#to_time has ignored the time zone since it was first a...

140 Chars class doesn't proxy "include?" was updated
  • jdwyah
    jdwyah commented at 1:44 AM

    Yep, I agree that this is the problem. What do you think, is it appropriate to just add an include? method to Chars (or UTF8Handler)? or is there a cleaner fix...

Wednesday, May 07 2008
140 Chars class doesn't proxy "include?" was updated
  • Xavier Noria
    Xavier Noria commented at 11:58 PM

    Let me rephrase the comment above.

    The proxy asks first the handler if it responds to the method, if it does not sends it to the proxied string.

    Since the ha...

  • Xavier Noria
    Xavier Noria commented at 11:47 PM

    Problem is

    >> "foo".chars.handler.respond_to?("include?")
    => true
    >> "foo".chars.handler
    => ActiveSupport::Multibyte::Handlers::UTF8Handler
    

    that is a Cla...

  • jdwyah
    jdwyah created the ticket at 11:17 PM

    The docs state that "Chars objects are perfectly interchangeable with String objects as long as no explicit class checks are made."

    However at least one Strin...

141 assert_response assumes a rendered template was updated
  • Chris Hapgood
    Chris Hapgood commented at 11:33 PM

    Here's a pastie of the code that causes LH to barf:

    http://pastie.caboo.se/193322

    NB: Even if I remove the "@@@ ruby" tag, it doesn't help.

  • Chris Hapgood
    Chris Hapgood commented at 11:28 PM

    I am unable to post a comment that includes my ruby source code -LH blows up. But the code example is pretty simple: implement a rescue_action_in_public and r...

  • Chris Hapgood
    Chris Hapgood created the ticket at 11:23 PM

    Since changeset 8559, assert_response assumes it can find the instance variable @exception in the rendered template. This is not the case if the exception is ...

139 [PATCH] Bug: Earlier Check for Session in Forgery Protection was created
  • Peter Jones
    Peter Jones created the ticket at 11:07 PM

    The session is used by the form_authenticity_token method before it is

    tested to be valid. This patch moves a few lines around so that the

    session is valida...

138 script/generate glitch for controllers in modules was created
  • Amol Hatwar (rubygem)
    Amol Hatwar (rubygem) created the ticket at 10:47 PM

    Hi,

    I am on edge, and after a recent git pull started facing problems with controllers. Here's a screendump of whats happening...

    amol@casper:~/projects/web/...
112 [PATCH] Detect duplicate migration names was updated
  • Aslak Hellesøy
    Aslak Hellesøy commented at 10:31 PM

    Yeah, I can see how it might be a PITA for small patches. I'll use attachments for future small patches.

    You may want to add a note about this in the sidebar ...

  • DHH
    DHH commented at 10:09 PM

    Pulling one-off patches is a huge pain in the ass. It's fine for long-running, expansive branches, but for simple fixes it's far too much work. So we continue ...

  • Aslak Hellesøy
    Aslak Hellesøy commented at 9:55 PM

    In my second comment there is a link to a changeset in Git, which you can just merge into the master branch. Here is the link again:

    http://github.com/aslakh...

102 [PATCH] Add "script/dbconsole" was updated
  • Steve Purcell
    Steve Purcell commented at 10:09 PM

    Awesome - thanks Jeremy.

  • Repository
    • State changed from new to resolved
    by Repository at 9:54 PM

    (from [2561732a08ae97fa44706a8eca4db147c4a7c286]) Some dbconsole tweaks. [#102 state:resolved]

    http://github.com/rails/rails/co...

  • Stefan Kaes
    Stefan Kaes commented at 9:45 PM

    without the .exe magic the correct executable will sometimes not be found on windows. the problem is that some installations add a program.bat file alongside p...

  • Steve Purcell
    Steve Purcell commented at 8:28 PM

    Yeah, good question - I think it's needed. Note that it's used both for choosing a preferred binary ("mysql5" vs "mysql") and for handling the .exe thing.

    Th...

  • Jeremy Kemper
    Jeremy Kemper commented at 8:21 PM

    Is find_cmd needed? AFAIK Windows doesn't require the .exe suffix and PATH resolution is handled by the shell already.

Add script/dbconsole to app generator... was committed by Repository at 9:54 PM
Add 'script/dbconsole' -- the databas... was committed by Repository at 9:54 PM
Some dbconsole tweaks. [#102 state:re... was committed by Repository at 9:54 PM
137 Assocation preload of has many through discards some attributes was created
  • Frederick Cheung
    Frederick Cheung created the ticket at 9:46 PM

    When eager loading a has many through association, some attributes are ignored. For example, given

    class Author < AR:Base
      has_many :posts
      has_many :comm...
127 Params hash is incorrect for nested arrays was updated
  • David Röthlisberger
    David Röthlisberger commented at 9:07 PM

    Exactly. After all, it seems like it 'remembers' previous keys when there no nested arrays:

    <input name="telephone[][area_code]" ... />
    <input name="telephon...
  • Jeremy Kemper
    Jeremy Kemper commented at 8:37 PM

    There's nothing to distinguish which hash keys belong to which element of the array. Looks like you expect the parser to 'remember' previously-seen hash keys a...

  • Jeremy Kemper
    • State changed from new to invalid
    by Jeremy Kemper at 8:35 PM
105 Assigning strings with timezone information to timezone aware attributes stri... was updated
  • Dan Barry
    Dan Barry commented at 8:42 PM

    Geoff,

    While I'm not sure whether someone would expect a string without an explicit time zone to be interpreted as UTC or the time zone set in Time.zone, I th...

136 [PATCH] Allow session(:on) was created
  • Peter Jones
    Peter Jones created the ticket at 8:18 PM

    If sessions were disabled using session(:off) in the application

    controller, but you need sessions in another controller, session(:on)

    seems intuitive as opp...

134 document HashWithIndifferentAccess was updated
135 Make ActiveRecord errors support full sentence messages was created
  • Nathan Wilmes
    Nathan Wilmes created the ticket at 7:50 PM

    Current Rails is extremely strict about what an attribute-specific error message looks like. A human-readable attribute name is always the first word(s) of th...