Permalink
Browse files

Update debugging topics to 1.9-hash syntax per #313

  • Loading branch information...
1 parent 639a8bd commit a1d6a4afcc10b4196b042862b4fada0d55629834 @kytrinyx kytrinyx committed Nov 17, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 source/topics/debugging/debugger.markdown
  2. +2 −2 source/topics/debugging/outputting_text.markdown
View
6 source/topics/debugging/debugger.markdown
@@ -89,7 +89,7 @@ def create
@article = Article.new(params[:article])
debugger
if @article.save
- redirect_to article_path(@article), :notice => "Your article was created."
+ redirect_to article_path(@article), notice: "Your article was created."
# ...
```
@@ -100,7 +100,7 @@ See how `next` moves the execution marker:
if @article.save
(rdb:2) next
/path/to/your/app/controllers/articles_controller.rb:20
-redirect_to article_path(@article), :notice => "Your article was created."
+redirect_to article_path(@article), notice: "Your article was created."
(rdb:2)
```
@@ -159,7 +159,7 @@ if @article.save
(rdb:2) next
1: @product = #<Article id: 22, title: 'Hello', body: 'World'>
/path/to/your/app/controllers/articles_controller.rb:22
-redirect_to article_path(@article), :notice => "Your article was created."
+redirect_to article_path(@article), notice: "Your article was created."
(rdb:2)
```
View
4 source/topics/debugging/outputting_text.markdown
@@ -59,9 +59,9 @@ def create
warn "Product before save:"
warn @product.inspect
if @product.save
- redirect_to @product, :notice => "Successfully created product."
+ redirect_to @product, notice: "Successfully created product."
else
- render :action => 'new'
+ render action: 'new'
end
end
```

0 comments on commit a1d6a4a

Please sign in to comment.