./README.md in rails-pjax-0.0.1 vs ./README.md in rails-pjax-0.0.2

- old
+ new

@@ -27,11 +27,11 @@ </body> FIXME: Currently the layout is hardcoded to "application". Need to delegate that to the specific layout of the controller. -Examples for redirect_to +Examples for redirect_pjax_to ----------------------------- class ProjectsController < ApplicationController before_filter :set_project, except: [ :index, :create ] @@ -42,22 +42,22 @@ def show end def create @project = Project.create params[:project] - redirect_to :show, @project + redirect_pjax_to :show, @project end def update @project.update_attributes params[:project] - redirect_to :show, @project + redirect_pjax_to :show, @project end def destroy @project.destroy index # set the objects needed for rendering index - redirect_to :index + redirect_pjax_to :index end private def set_project @project = current_user.projects.find params[:id].to_i