Permalink
Browse files

Merge branch 'master' of github.com:rails/pjax_rails

  • Loading branch information...
2 parents b0366ac + 5b029ec commit 755b2988184607af87186046612efb0c9c2d99ba @josh josh committed Apr 2, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -29,7 +29,7 @@ The PJAX container has to be marked with data-pjax-container attribute, so for e
FIXME: Currently the layout is hardcoded to "application". Need to delegate that to the specific layout of the controller.
-Examples for redirect_pjax_to
+Examples for redirect_to
-----------------------------
class ProjectsController < ApplicationController
@@ -44,19 +44,19 @@ Examples for redirect_pjax_to
def create
@project = Project.create params[:project]
- redirect_pjax_to :show, @project
+ redirect_to :show, @project
end
def update
@project.update_attributes params[:project]
- redirect_pjax_to :show, @project
+ redirect_to :show, @project
end
def destroy
@project.destroy
index # set the objects needed for rendering index
- redirect_pjax_to :index
+ redirect_to :index
end
private

0 comments on commit 755b298

Please sign in to comment.