Sha256: 20ba065e75216e95398b770ae4c7ad1cf7f9b4c69b243e90be69e0d692ac0f06
Contents?: true
Size: 1.74 KB
Versions: 2
Compression:
Stored size: 1.74 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>create (BacklogsController)</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/backlogs_controller.rb, line 45</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span> <span class="ruby-ivar">@backlog</span> = <span class="ruby-constant">Backlog</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:backlog</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@backlog</span>.<span class="ruby-identifier">save</span> <span class="ruby-identifier">flash</span>[<span class="ruby-identifier">:notice</span>] = <span class="ruby-value str">'Backlog was successfully created.'</span> <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:show</span>, <span class="ruby-identifier">:id</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@backlog</span> <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">render</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'new'</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backlog-0.8.1 | doc/classes/BacklogsController.src/M000045.html |
backlog-0.8.1 | doc/classes/BacklogsController.src/M000056.html |