doc/classes/PeriodsController.src/M000368.html in backlog-0.7.9 vs doc/classes/PeriodsController.src/M000368.html in backlog-0.7.10

- old
+ new

@@ -3,22 +3,17 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>update (PeriodsController)</title> + <title>show_no_layout (PeriodsController)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File app/controllers/periods_controller.rb, line 73</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span> - <span class="ruby-ivar">@period</span> = <span class="ruby-constant">Period</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>]) - <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@period</span>.<span class="ruby-identifier">update_attributes</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:period</span>]) - <span class="ruby-identifier">flash</span>[<span class="ruby-identifier">:notice</span>] = <span class="ruby-value str">'Period was successfully updated.'</span> - <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'show'</span>, <span class="ruby-identifier">:id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@period</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">render</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'edit'</span> - <span class="ruby-keyword kw">end</span> + <pre><span class="ruby-comment cmt"># File app/controllers/periods_controller.rb, line 38</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show_no_layout</span> + <span class="ruby-identifier">show</span> + <span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'show_active'</span>, <span class="ruby-identifier">:layout</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:i</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>} <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file