Permalink
Browse files

removed cane msgs

  • Loading branch information...
1 parent ccecd3a commit 8a1df5901eef8594e716a0e7ffa1dd99f7f5d5c7 @jasnow committed Jul 15, 2013
Showing with 21 additions and 10 deletions.
  1. +1 −0 .cane
  2. +10 −5 app/controllers/microposts_controller.rb
  3. +10 −5 app/controllers/users_controller.rb
View
@@ -0,0 +1 @@
+--no-doc
@@ -44,11 +44,14 @@ def create
respond_to do |format|
if @micropost.save
- format.html { redirect_to(@micropost, :notice => 'Micropost was successfully created.') }
- format.xml { render :xml => @micropost, :status => :created, :location => @micropost }
+ format.html { redirect_to(@micropost,
+ :notice => 'Micropost was successfully created.') }
+ format.xml { render :xml => @micropost,
+ :status => :created, :location => @micropost }
else
format.html { render :action => "new" }
- format.xml { render :xml => @micropost.errors, :status => :unprocessable_entity }
+ format.xml { render :xml => @micropost.errors,
+ :status => :unprocessable_entity }
end
end
end
@@ -60,11 +63,13 @@ def update
respond_to do |format|
if @micropost.update_attributes(params[:micropost])
- format.html { redirect_to(@micropost, :notice => 'Micropost was successfully updated.') }
+ format.html { redirect_to(@micropost,
+ :notice => 'Micropost was successfully updated.') }
format.xml { head :ok }
else
format.html { render :action => "edit" }
- format.xml { render :xml => @micropost.errors, :status => :unprocessable_entity }
+ format.xml { render :xml => @micropost.errors,
+ :status => :unprocessable_entity }
end
end
end
@@ -44,11 +44,14 @@ def create
respond_to do |format|
if @user.save
- format.html { redirect_to(@user, :notice => 'User was successfully created.') }
- format.xml { render :xml => @user, :status => :created, :location => @user }
+ format.html { redirect_to(@user,
+ :notice => 'User was successfully created.') }
+ format.xml { render :xml => @user,
+ :status => :created, :location => @user }
else
format.html { render :action => "new" }
- format.xml { render :xml => @user.errors, :status => :unprocessable_entity }
+ format.xml { render :xml => @user.errors,
+ :status => :unprocessable_entity }
end
end
end
@@ -60,11 +63,13 @@ def update
respond_to do |format|
if @user.update_attributes(params[:user])
- format.html { redirect_to(@user, :notice => 'User was successfully updated.') }
+ format.html { redirect_to(@user,
+ :notice => 'User was successfully updated.') }
format.xml { head :ok }
else
format.html { render :action => "edit" }
- format.xml { render :xml => @user.errors, :status => :unprocessable_entity }
+ format.xml { render :xml => @user.errors,
+ :status => :unprocessable_entity }
end
end
end

0 comments on commit 8a1df59

Please sign in to comment.