Lawrence Pit
Not a member
Lawrence Pit's latest activity
Thursday, May 27 2010
-
Lawrence Pit commented at 1:40 AMI'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 commented at 12:31 AMrequire '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
-
Lawrence Pit created the ticket at 10:00 AMUsing rails 3 edge.
Spec'ing a controller that's dead simple:
def show @company = Company.find(params[:id]) respond_with(@company) endIt has a
ap...
Thursday, May 20 2010
-
Lawrence Pit commented at 5:51 AMTyler, 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
-
Lawrence Pit commented at 7:06 AMmime_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...
-
Lawrence Pit commented at 5:03 AMGreat patch indeed. Can I ask you guys to look at this one as well? :
https://rails.lighthouseapp.com/projects/8994/tickets/4588-cache-in...
It has some minor ...
Thursday, May 13 2010
-
Lawrence Pit commented at 2:38 AMActually, 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...
-
Lawrence Pit created the ticket at 2:24 AMThis 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
-
Lawrence Pit created the ticket at 4:04 AMUsing 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...