Permalink
Browse files

Merge pull request #3 from quamen/master

Fix readme
  • Loading branch information...
2 parents e735afc + cd4328d commit bf9200d2e2a72a951a5291a2d02f9f79bc28ce93 @justinfrench justinfrench committed Jun 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -145,22 +145,22 @@ We also need to instruct the `PostsController` not to wrap the view in a layout
# app/controllers/posts_controller.rb
class PostsController < ApplicationController
def index
- render :layout => nil
+ render :layout => false
end
end
Or for an entire controller:
# app/controllers/posts_controller.rb
class PostsController < ApplicationController
- layout nil
+ layout false
end
Or for every controller:
# app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
- layout nil
+ layout false
end
We'll find a way to make this easier or a bit more obvious in a future version.

0 comments on commit bf9200d

Please sign in to comment.