doc/classes/GroupsController.src/M000336.html in backlog-0.7.12 vs doc/classes/GroupsController.src/M000336.html in backlog-0.8.0
- old
+ new
@@ -3,17 +3,19 @@
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title>destroy (GroupsController)</title>
+ <title>edit (GroupsController)</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/groups_controller.rb, line 46</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">destroy</span>
- <span class="ruby-constant">Group</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>]).<span class="ruby-identifier">destroy</span>
- <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'list'</span>
+ <pre><span class="ruby-comment cmt"># File app/controllers/groups_controller.rb, line 29</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">edit</span>
+ <span class="ruby-ivar">@group</span> = <span class="ruby-constant">Group</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>])
+ <span class="ruby-ivar">@users</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">:all</span>)
+ <span class="ruby-ivar">@members</span> = <span class="ruby-ivar">@group</span>.<span class="ruby-identifier">users</span>.<span class="ruby-identifier">to_s</span>
+ <span class="ruby-ivar">@groups</span> = <span class="ruby-constant">Group</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">:all</span>, <span class="ruby-identifier">:order</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'name'</span>)
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>
\ No newline at end of file