Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

1.9 style on README

  • Loading branch information...
commit e4520ceec457529f06afee736e47dfd1fecb43db 1 parent 646976e
@amatsuda amatsuda authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.rdoc
View
8 README.rdoc
@@ -60,9 +60,9 @@ The following beautiful controller code will be generated:
@user = User.new(user)
if @user.save
- redirect_to @user, :notice => 'User was successfully created.'
+ redirect_to @user, notice: 'User was successfully created.'
else
- render :action => 'new'
+ render action: 'new'
end
end
@@ -71,9 +71,9 @@ The following beautiful controller code will be generated:
@user = User.find(id)
if @user.update_attributes(user)
- redirect_to @user, :notice => 'User was successfully updated.'
+ redirect_to @user, notice: 'User was successfully updated.'
else
- render :action => 'edit'
+ render action: 'edit'
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.