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.

Lawrence Pit's latest activity

Thursday, May 27 2010
4703 @layouts in TemplateAssertions is +nil+ was updated in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit commented at 1:40 AM

    I've recreated this situation as simple as possible in a new rails app. The app can be cloned from http://github.com/lawrencepit/layoutsnil. Run:

    bundle instal...
  • Lawrence Pit
    Lawrence Pit commented at 12:31 AM
    require 'spec_helper'
    
    describe CompaniesController do
      before(:each) do
        @company = Company.first
      end
    
      it "should render a company as xml" do
        requ...
Wednesday, May 26 2010
4703 @layouts in TemplateAssertions is +nil+ was created in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit created the ticket at 10:00 AM

    Using rails 3 edge.

    Spec'ing a controller that's dead simple:

      def show
        @company = Company.find(params[:id])
        respond_with(@company)
      end
    

    It has a ap...

Thursday, May 20 2010
4521 HABTM: ability to link and unlink records with :autosave => true was updated in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit commented at 5:51 AM

    Tyler, thanks for your input. Below some answers.

    mark_for_destruction

    +mark_for_destruction+ sets an instance var on a model instance, so it would destroy the ...

Wednesday, May 19 2010
4579 respond_with should exhibit common behaviour for "API" requests, even when a ... was updated in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit commented at 7:06 AM

    mime_respond_test.rb has this test:

      def test_using_resource_for_post_with_xml_yields_created_on_success
        with_test_route_set do
          @request.accept = "a...
4452 Making ActiveSupport::Cache consistent was updated in Ruby on Rails
Thursday, May 13 2010
4579 respond_with should exhibit common behaviour for "API" requests, even when a ... was updated in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit commented at 2:38 AM

    Actually, why does the +create+ method respond with the resource, while +update+ (and +delete+) don't? If +create+ were to respond with an empty body and status...

4588 Cache increment/decrement with initialization when missing value was created in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit created the ticket at 2:24 AM

    This patch makes incrementing/decrementing values using Rails.cache easier, particularly if one uses memcache. For proper use of incr/decr using memcache see h...

Wednesday, May 12 2010
4579 respond_with should exhibit common behaviour for "API" requests, even when a ... was created in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit created the ticket at 4:04 AM

    Using rails 3 master. My +create+ controller method ends with respond_with(@user), in which case it will result in a http status code of 201 (:created) and will...

Tuesday, May 11 2010
4547 ActiveSupport #to_json doesn't work with DM was updated in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit commented at 12:09 PM

    I also have this with ActiveRecord