Dokumentation hinzugefügt
annotation gem installiert und Dokumentation in app/doc eingefügt
1
Gemfile
@@ -69,3 +69,4 @@ gem 'haml'
|
||||
#gem 'RedCloth'
|
||||
#gem 'gollum'
|
||||
gem 'awesome_nested_set'
|
||||
gem 'annotate', ">=2.5.0"
|
||||
|
||||
@@ -28,6 +28,8 @@ GEM
|
||||
activesupport (3.2.9)
|
||||
i18n (~> 0.6)
|
||||
multi_json (~> 1.0)
|
||||
annotate (2.5.0)
|
||||
rake
|
||||
arel (3.0.2)
|
||||
awesome_nested_set (2.1.6)
|
||||
activerecord (>= 3.0.0)
|
||||
@@ -151,6 +153,7 @@ PLATFORMS
|
||||
x86-mingw32
|
||||
|
||||
DEPENDENCIES
|
||||
annotate (>= 2.5.0)
|
||||
awesome_nested_set
|
||||
bootstrap-sass (~> 2.2.0)
|
||||
cancan
|
||||
|
||||
283
app/doc/Ability.html
Normal file
@@ -0,0 +1,283 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class Ability - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>models/ability.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">Object
|
||||
|
||||
</nav>
|
||||
|
||||
<!-- Included Modules -->
|
||||
<nav id="includes-section" class="section">
|
||||
<h3 class="section-header">Included Modules</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
|
||||
<li><span class="include">CanCan::Ability</span>
|
||||
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-c-new">::new</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class Ability</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Class Methods</h3>
|
||||
|
||||
|
||||
<div id="method-c-new" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">new</span><span
|
||||
class="method-args">(user)</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="new-source">
|
||||
<pre><span class="ruby-comment"># File models/ability.rb, line 3</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">user</span>)
|
||||
<span class="ruby-comment"># Define abilities for the passed in user here. For example:</span>
|
||||
<span class="ruby-comment">#</span>
|
||||
<span class="ruby-comment"># if user.admin?</span>
|
||||
<span class="ruby-comment"># can :manage, :all</span>
|
||||
<span class="ruby-comment"># else</span>
|
||||
<span class="ruby-comment"># can :read, :all</span>
|
||||
<span class="ruby-comment"># end</span>
|
||||
<span class="ruby-comment"># The first argument to `can` is the action you are giving the user permission to do.</span>
|
||||
<span class="ruby-comment"># If you pass :manage it will apply to every action. Other common actions here are</span>
|
||||
<span class="ruby-comment"># :read, :create, :update and :destroy.</span>
|
||||
<span class="ruby-comment">#</span>
|
||||
<span class="ruby-comment"># The second argument is the resource the user can perform the action on. If you pass</span>
|
||||
<span class="ruby-comment"># :all it will apply to every resource. Otherwise pass a Ruby class of the resource.</span>
|
||||
<span class="ruby-comment">#</span>
|
||||
<span class="ruby-comment"># The third argument is an optional hash of conditions to further filter the objects.</span>
|
||||
<span class="ruby-comment"># For example, here the user can only update published articles.</span>
|
||||
<span class="ruby-comment">#</span>
|
||||
<span class="ruby-comment"># can :update, Article, :published => true</span>
|
||||
<span class="ruby-comment">#</span>
|
||||
<span class="ruby-comment"># See the wiki for details: https://github.com/ryanb/cancan/wiki/Defining-Abilitiescan :manage, :all</span>
|
||||
|
||||
<span class="ruby-identifier">user</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">User</span>.<span class="ruby-identifier">new</span> <span class="ruby-comment"># guest user (not logged in)</span>
|
||||
|
||||
|
||||
<span class="ruby-comment"># For Debug allow everything</span>
|
||||
<span class="ruby-comment"># Remove this line in production environment and for testing user management</span>
|
||||
<span class="ruby-identifier">can</span> <span class="ruby-value">:manage</span>, <span class="ruby-value">:all</span>
|
||||
|
||||
<span class="ruby-comment"># Rechteverwaltung f<>r Studien Modul</span>
|
||||
<span class="ruby-identifier">can</span> <span class="ruby-value">:read</span>, <span class="ruby-constant">Modulgruppe</span>
|
||||
<span class="ruby-identifier">can</span> <span class="ruby-value">:manage</span>, <span class="ruby-constant">Modulgruppe</span>
|
||||
|
||||
|
||||
|
||||
<span class="ruby-comment"># Rechteverwaltung fuer Neuigkeiten</span>
|
||||
|
||||
<span class="ruby-comment"># can :write, Neuigkeit if user.has_role?("newsmoderator", Neuigkeit.rubrik)</span>
|
||||
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">user</span>.<span class="ruby-identifier">has_role?</span> <span class="ruby-string">"newsadmin"</span>
|
||||
<span class="ruby-identifier">can</span> <span class="ruby-value">:addmoderator</span>, <span class="ruby-constant">Rubrik</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
|
||||
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- new-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- new-method -->
|
||||
|
||||
|
||||
</section><!-- public-class-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
267
app/doc/ApplicationController.html
Normal file
@@ -0,0 +1,267 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class ApplicationController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/application_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActionController::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-default_url_options">#default_url_options</a>
|
||||
|
||||
<li><a href="#method-i-set_i18n_locale_from_params">#set_i18n_locale_from_params</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class ApplicationController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="protected-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Protected Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-default_url_options" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">default_url_options</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="default_url_options-source">
|
||||
<pre><span class="ruby-comment"># File controllers/application_controller.rb, line 15</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">default_url_options</span>
|
||||
{<span class="ruby-identifier">locale</span><span class="ruby-operator">:</span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">locale</span>}
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- default_url_options-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- default_url_options-method -->
|
||||
|
||||
|
||||
<div id="method-i-set_i18n_locale_from_params" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">set_i18n_locale_from_params</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="set_i18n_locale_from_params-source">
|
||||
<pre><span class="ruby-comment"># File controllers/application_controller.rb, line 5</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_i18n_locale_from_params</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:locale</span>]
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">available_locales</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:locale</span>].<span class="ruby-identifier">to_sym</span>)
|
||||
<span class="ruby-constant">I18n</span>.<span class="ruby-identifier">locale</span>=<span class="ruby-identifier">params</span>[<span class="ruby-value">:locale</span>].<span class="ruby-identifier">to_sym</span>
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">flash</span>.<span class="ruby-identifier">now</span>[<span class="ruby-value">:notice</span>]= <span class="ruby-node">"#{params[:locale]} translation not available"</span>
|
||||
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">error</span> <span class="ruby-identifier">flash</span>.<span class="ruby-identifier">now</span>[<span class="ruby-value">:notice</span>]
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- set_i18n_locale_from_params-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- set_i18n_locale_from_params-method -->
|
||||
|
||||
|
||||
</section><!-- protected-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
323
app/doc/ApplicationHelper.html
Normal file
@@ -0,0 +1,323 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>module ApplicationHelper - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="module">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>helpers/application_helper.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-current_url">#current_url</a>
|
||||
|
||||
<li><a href="#method-i-switch_locale_url">#switch_locale_url</a>
|
||||
|
||||
<li><a href="#method-i-toolbar_html">#toolbar_html</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">module ApplicationHelper</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-current_url" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">current_url</span><span
|
||||
class="method-args">(overwrite={})</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="current_url-source">
|
||||
<pre><span class="ruby-comment"># File helpers/application_helper.rb, line 2</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">current_url</span>(<span class="ruby-identifier">overwrite</span>={})
|
||||
<span class="ruby-identifier">url_for</span> <span class="ruby-value">:params</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">params</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">overwrite</span>).<span class="ruby-identifier">except</span>(<span class="ruby-value">:controller</span>,<span class="ruby-value">:action</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- current_url-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- current_url-method -->
|
||||
|
||||
|
||||
<div id="method-i-switch_locale_url" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">switch_locale_url</span><span
|
||||
class="method-args">(target_locale)</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="switch_locale_url-source">
|
||||
<pre><span class="ruby-comment"># File helpers/application_helper.rb, line 5</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">switch_locale_url</span>(<span class="ruby-identifier">target_locale</span>)
|
||||
<span class="ruby-identifier">current_url</span>({<span class="ruby-value">:locale=</span><span class="ruby-operator">></span><span class="ruby-identifier">target_locale</span>}) .<span class="ruby-identifier">sub</span> <span class="ruby-string">"/"</span><span class="ruby-operator">+</span><span class="ruby-constant">I18n</span>.<span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_s</span><span class="ruby-operator">+</span><span class="ruby-string">"/"</span>, <span class="ruby-string">"/"</span><span class="ruby-operator">+</span><span class="ruby-identifier">target_locale</span>.<span class="ruby-identifier">to_s</span><span class="ruby-operator">+</span><span class="ruby-string">"/"</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- switch_locale_url-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- switch_locale_url-method -->
|
||||
|
||||
|
||||
<div id="method-i-toolbar_html" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">toolbar_html</span><span
|
||||
class="method-args">(elemente)</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="toolbar_html-source">
|
||||
<pre><span class="ruby-comment"># File helpers/application_helper.rb, line 9</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">toolbar_html</span>(<span class="ruby-identifier">elemente</span>)
|
||||
<span class="ruby-identifier">html</span> = <span class="ruby-string">""</span>
|
||||
<span class="ruby-identifier">limiter</span> = <span class="ruby-string">" | "</span>
|
||||
<span class="ruby-identifier">elemente</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">e</span>[<span class="ruby-value">:icon</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-keyword">case</span> <span class="ruby-identifier">e</span>[<span class="ruby-value">:icon</span>]
|
||||
<span class="ruby-keyword">when</span> <span class="ruby-value">:pencil</span>
|
||||
<span class="ruby-identifier">text</span> = <span class="ruby-string">'<i class="icon-pencil"></i>'</span>.<span class="ruby-identifier">html_safe</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">e</span>[<span class="ruby-value">:text</span>]
|
||||
<span class="ruby-keyword">when</span> <span class="ruby-value">:plus</span>
|
||||
<span class="ruby-identifier">text</span> =<span class="ruby-string">'<i class="icon-plus"></i>'</span>.<span class="ruby-identifier">html_safe</span><span class="ruby-operator">+</span><span class="ruby-identifier">e</span>[<span class="ruby-value">:text</span>]
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">text</span> = <span class="ruby-identifier">e</span>[<span class="ruby-value">:text</span>]
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">text</span> =<span class="ruby-identifier">e</span>[<span class="ruby-value">:text</span>]
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">e</span>[<span class="ruby-value">:link</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">e</span>[<span class="ruby-value">:method</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">e</span>[<span class="ruby-value">:confirm</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-identifier">html</span> = <span class="ruby-identifier">html</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">link_to</span>(<span class="ruby-identifier">text</span>,<span class="ruby-identifier">e</span>[<span class="ruby-value">:path</span>],<span class="ruby-value">:confirm=</span><span class="ruby-operator">></span><span class="ruby-identifier">e</span>[<span class="ruby-value">:confirm</span>],<span class="ruby-value">:method=</span><span class="ruby-operator">></span><span class="ruby-identifier">e</span>[<span class="ruby-value">:method</span>])
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">html</span> = <span class="ruby-identifier">html</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">link_to</span>(<span class="ruby-identifier">text</span>,<span class="ruby-identifier">e</span>[<span class="ruby-value">:path</span>],<span class="ruby-value">:method</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>[<span class="ruby-value">:method</span>])
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">e</span>[<span class="ruby-value">:confirm</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-identifier">html</span>=<span class="ruby-identifier">html</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">link_to</span>(<span class="ruby-identifier">text</span>,<span class="ruby-identifier">e</span>[<span class="ruby-value">:path</span>],<span class="ruby-value">:confirm=</span><span class="ruby-operator">></span><span class="ruby-identifier">e</span>[<span class="ruby-value">:confirm</span>])
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">html</span>= <span class="ruby-identifier">html</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">link_to</span>(<span class="ruby-identifier">text</span>,<span class="ruby-identifier">e</span>[<span class="ruby-value">:path</span>])
|
||||
<span class="ruby-keyword">end</span>
|
||||
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">html</span> = <span class="ruby-identifier">html</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">e</span>[<span class="ruby-value">:link</span>]
|
||||
<span class="ruby-keyword">end</span>
|
||||
|
||||
<span class="ruby-identifier">html</span>=<span class="ruby-identifier">html</span><span class="ruby-operator">+</span><span class="ruby-identifier">limiter</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-identifier">raw</span>(<span class="ruby-identifier">html</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- toolbar_html-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- toolbar_html-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
197
app/doc/Beispiel.html
Normal file
@@ -0,0 +1,197 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class Beispiel - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>models/beispiel.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActiveRecord::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class Beispiel</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
<h2 id="label-Schema+Information">Schema Information</h2>
|
||||
|
||||
<p>Table name: beispiele</p>
|
||||
|
||||
<pre>id :integer not null, primary key
|
||||
name :string(255)
|
||||
desc :text
|
||||
lva_id :integer
|
||||
created_at :datetime not null
|
||||
updated_at :datetime not null
|
||||
file_file_name :string(255)
|
||||
file_content_type :string(255)
|
||||
file_file_size :integer
|
||||
file_updated_at :datetime</pre>
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
461
app/doc/BeispieleController.html
Normal file
@@ -0,0 +1,461 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class BeispieleController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/beispiele_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="ApplicationController.html">ApplicationController</a>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-create">#create</a>
|
||||
|
||||
<li><a href="#method-i-destroy">#destroy</a>
|
||||
|
||||
<li><a href="#method-i-edit">#edit</a>
|
||||
|
||||
<li><a href="#method-i-index">#index</a>
|
||||
|
||||
<li><a href="#method-i-new">#new</a>
|
||||
|
||||
<li><a href="#method-i-show">#show</a>
|
||||
|
||||
<li><a href="#method-i-update">#update</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class BeispieleController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-create" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">create</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>POST /beispiele POST /beispiele.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="create-source">
|
||||
<pre><span class="ruby-comment"># File controllers/beispiele_controller.rb, line 42</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>
|
||||
<span class="ruby-ivar">@beispiel</span> = <span class="ruby-constant">Beispiel</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:beispiel</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@beispiel</span>.<span class="ruby-identifier">save</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@beispiel</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Beispiel was successfully created.'</span> }
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@beispiel</span>, <span class="ruby-identifier">status</span><span class="ruby-operator">:</span> <span class="ruby-value">:created</span>, <span class="ruby-identifier">location</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@beispiel</span> }
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"new"</span> }
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@beispiel</span>.<span class="ruby-identifier">errors</span>, <span class="ruby-identifier">status</span><span class="ruby-operator">:</span> <span class="ruby-value">:unprocessable_entity</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- create-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- create-method -->
|
||||
|
||||
|
||||
<div id="method-i-destroy" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">destroy</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>DELETE /beispiele/1 DELETE /beispiele/1.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="destroy-source">
|
||||
<pre><span class="ruby-comment"># File controllers/beispiele_controller.rb, line 74</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">destroy</span>
|
||||
<span class="ruby-ivar">@beispiel</span> = <span class="ruby-constant">Beispiel</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@beispiel</span>.<span class="ruby-identifier">destroy</span>
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">beispiele_url</span> }
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">head</span> <span class="ruby-value">:no_content</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- destroy-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- destroy-method -->
|
||||
|
||||
|
||||
<div id="method-i-edit" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">edit</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /beispiele/1/edit</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="edit-source">
|
||||
<pre><span class="ruby-comment"># File controllers/beispiele_controller.rb, line 36</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">edit</span>
|
||||
<span class="ruby-ivar">@beispiel</span> = <span class="ruby-constant">Beispiel</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- edit-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- edit-method -->
|
||||
|
||||
|
||||
<div id="method-i-index" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">index</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /beispiele GET /beispiele.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="index-source">
|
||||
<pre><span class="ruby-comment"># File controllers/beispiele_controller.rb, line 4</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
|
||||
<span class="ruby-ivar">@beispiele</span> = <span class="ruby-constant">Beispiel</span>.<span class="ruby-identifier">all</span>
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> <span class="ruby-comment"># index.html.erb</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@beispiele</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- index-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- index-method -->
|
||||
|
||||
|
||||
<div id="method-i-new" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">new</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /beispiele/new GET /beispiele/new.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="new-source">
|
||||
<pre><span class="ruby-comment"># File controllers/beispiele_controller.rb, line 26</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">new</span>
|
||||
<span class="ruby-ivar">@beispiel</span> = <span class="ruby-constant">Beispiel</span>.<span class="ruby-identifier">new</span>
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> <span class="ruby-comment"># new.html.erb</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@beispiel</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- new-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- new-method -->
|
||||
|
||||
|
||||
<div id="method-i-show" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">show</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /beispiele/1 GET /beispiele/1.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="show-source">
|
||||
<pre><span class="ruby-comment"># File controllers/beispiele_controller.rb, line 15</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">show</span>
|
||||
<span class="ruby-ivar">@beispiel</span> = <span class="ruby-constant">Beispiel</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> <span class="ruby-comment"># show.html.erb</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@beispiel</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- show-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- show-method -->
|
||||
|
||||
|
||||
<div id="method-i-update" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">update</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>PUT /beispiele/1 PUT /beispiele/1.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="update-source">
|
||||
<pre><span class="ruby-comment"># File controllers/beispiele_controller.rb, line 58</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>
|
||||
<span class="ruby-ivar">@beispiel</span> = <span class="ruby-constant">Beispiel</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@beispiel</span>.<span class="ruby-identifier">update_attributes</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:beispiel</span>])
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@beispiel</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Beispiel was successfully updated.'</span> }
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">head</span> <span class="ruby-value">:no_content</span> }
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"edit"</span> }
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@beispiel</span>.<span class="ruby-identifier">errors</span>, <span class="ruby-identifier">status</span><span class="ruby-operator">:</span> <span class="ruby-value">:unprocessable_entity</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- update-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- update-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
176
app/doc/BeispieleHelper.html
Normal file
@@ -0,0 +1,176 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>module BeispieleHelper - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="module">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>helpers/beispiele_helper.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">module BeispieleHelper</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
265
app/doc/ConfigController.html
Normal file
@@ -0,0 +1,265 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class ConfigController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/config_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="ApplicationController.html">ApplicationController</a>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-get_git_update">#get_git_update</a>
|
||||
|
||||
<li><a href="#method-i-index">#index</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class ConfigController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-get_git_update" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">get_git_update</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="get_git_update-source">
|
||||
<pre><span class="ruby-comment"># File controllers/config_controller.rb, line 5</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_git_update</span>
|
||||
<span class="ruby-identifier">g</span> = <span class="ruby-constant">Git</span>.<span class="ruby-identifier">open</span>(<span class="ruby-string">"."</span>)
|
||||
|
||||
<span class="ruby-identifier">flash</span>[<span class="ruby-value">:notice</span>] =<span class="ruby-string">"Test"</span>
|
||||
<span class="ruby-comment"># flash[:notice] =g.remote("github").fetch</span>
|
||||
<span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">config_url</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- get_git_update-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- get_git_update-method -->
|
||||
|
||||
|
||||
<div id="method-i-index" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">index</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="index-source">
|
||||
<pre><span class="ruby-comment"># File controllers/config_controller.rb, line 2</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- index-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- index-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
182
app/doc/Confirmmailer.html
Normal file
@@ -0,0 +1,182 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class Confirmmailer - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>mailers/confirmmailer.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActionMailer::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class Confirmmailer</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
259
app/doc/HomeController.html
Normal file
@@ -0,0 +1,259 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class HomeController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/home_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="ApplicationController.html">ApplicationController</a>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-dev">#dev</a>
|
||||
|
||||
<li><a href="#method-i-index">#index</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class HomeController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-dev" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">dev</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="dev-source">
|
||||
<pre><span class="ruby-comment"># File controllers/home_controller.rb, line 4</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">dev</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- dev-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- dev-method -->
|
||||
|
||||
|
||||
<div id="method-i-index" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">index</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="index-source">
|
||||
<pre><span class="ruby-comment"># File controllers/home_controller.rb, line 2</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- index-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- index-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
209
app/doc/Lva.html
Normal file
@@ -0,0 +1,209 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class Lva - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>models/lva.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActiveRecord::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class Lva</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
<h2 id="label-Schema+Information">Schema Information</h2>
|
||||
|
||||
<p>Table name: lvas</p>
|
||||
|
||||
<pre>id :integer not null, primary key
|
||||
name :string(255)
|
||||
desc :text
|
||||
ects :decimal(, )
|
||||
lvanr :string(255)
|
||||
stunden :decimal(, )
|
||||
created_at :datetime not null
|
||||
updated_at :datetime not null
|
||||
modul_id :integer
|
||||
semester_id :integer</pre>
|
||||
|
||||
<h2 id="label-Information">Information</h2>
|
||||
<dl class="rdoc-list note-list"><dt>Author
|
||||
<dd>
|
||||
<p>Andreas Stephanides</p>
|
||||
</dd><dt>License
|
||||
<dd>
|
||||
<p>GPL</p>
|
||||
</dd></dl>
|
||||
|
||||
<p>Dieses Model repräsentiert eine LVA. Die notwendigen Informationen können
|
||||
mit TISS (dem Online System der TU Wien) synchronisiert werden</p>
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
451
app/doc/LvasController.html
Normal file
@@ -0,0 +1,451 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class LvasController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/lvas_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="ApplicationController.html">ApplicationController</a>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-create">#create</a>
|
||||
|
||||
<li><a href="#method-i-destroy">#destroy</a>
|
||||
|
||||
<li><a href="#method-i-edit">#edit</a>
|
||||
|
||||
<li><a href="#method-i-index">#index</a>
|
||||
|
||||
<li><a href="#method-i-new">#new</a>
|
||||
|
||||
<li><a href="#method-i-show">#show</a>
|
||||
|
||||
<li><a href="#method-i-update">#update</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class LvasController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-create" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">create</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>POST /lvas POST /lvas.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="create-source">
|
||||
<pre><span class="ruby-comment"># File controllers/lvas_controller.rb, line 32</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>
|
||||
<span class="ruby-ivar">@lva</span> = <span class="ruby-constant">Lva</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:lva</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@lva</span>.<span class="ruby-identifier">save</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@lva</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Lva was successfully created.'</span> }
|
||||
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"new"</span> }
|
||||
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- create-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- create-method -->
|
||||
|
||||
|
||||
<div id="method-i-destroy" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">destroy</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>DELETE /lvas/1 DELETE /lvas/1.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="destroy-source">
|
||||
<pre><span class="ruby-comment"># File controllers/lvas_controller.rb, line 64</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">destroy</span>
|
||||
<span class="ruby-ivar">@lva</span> = <span class="ruby-constant">Lva</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@lva</span>.<span class="ruby-identifier">destroy</span>
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">lvas_url</span> }
|
||||
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- destroy-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- destroy-method -->
|
||||
|
||||
|
||||
<div id="method-i-edit" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">edit</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /lvas/1/edit</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="edit-source">
|
||||
<pre><span class="ruby-comment"># File controllers/lvas_controller.rb, line 26</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">edit</span>
|
||||
<span class="ruby-ivar">@lva</span> = <span class="ruby-constant">Lva</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- edit-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- edit-method -->
|
||||
|
||||
|
||||
<div id="method-i-index" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">index</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="index-source">
|
||||
<pre><span class="ruby-comment"># File controllers/lvas_controller.rb, line 4</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
|
||||
<span class="ruby-ivar">@lvas</span> = <span class="ruby-constant">Lva</span>.<span class="ruby-identifier">all</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- index-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- index-method -->
|
||||
|
||||
|
||||
<div id="method-i-new" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">new</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /lvas/new GET /lvas/new.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="new-source">
|
||||
<pre><span class="ruby-comment"># File controllers/lvas_controller.rb, line 18</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">new</span>
|
||||
<span class="ruby-ivar">@lva</span> = <span class="ruby-constant">Lva</span>.<span class="ruby-identifier">new</span>
|
||||
<span class="ruby-identifier">modul</span>=<span class="ruby-constant">Modul</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:modul_id</span>])
|
||||
<span class="ruby-ivar">@lva</span>.<span class="ruby-identifier">modul</span><span class="ruby-operator"><<</span><span class="ruby-identifier">modul</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- new-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- new-method -->
|
||||
|
||||
|
||||
<div id="method-i-show" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">show</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /lvas/1</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="show-source">
|
||||
<pre><span class="ruby-comment"># File controllers/lvas_controller.rb, line 11</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">show</span>
|
||||
<span class="ruby-ivar">@lva</span> = <span class="ruby-constant">Lva</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@toolbar_elements</span><span class="ruby-operator"><<</span>{<span class="ruby-value">:icon=</span><span class="ruby-operator">></span><span class="ruby-value">:pencil</span>,<span class="ruby-value">:text</span> =<span class="ruby-operator">></span><span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'common.edit'</span>),<span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">edit_lva_path</span>(<span class="ruby-ivar">@lva</span>)}
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- show-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- show-method -->
|
||||
|
||||
|
||||
<div id="method-i-update" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">update</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>PUT /lvas/1 PUT /lvas/1.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="update-source">
|
||||
<pre><span class="ruby-comment"># File controllers/lvas_controller.rb, line 48</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>
|
||||
<span class="ruby-ivar">@lva</span> = <span class="ruby-constant">Lva</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@lva</span>.<span class="ruby-identifier">update_attributes</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:lva</span>])
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@lva</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Lva was successfully updated.'</span> }
|
||||
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"edit"</span> }
|
||||
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- update-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- update-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
193
app/doc/Modul.html
Normal file
@@ -0,0 +1,193 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class Modul - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>models/modul.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActiveRecord::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class Modul</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
<h2 id="label-Schema+Information">Schema Information</h2>
|
||||
|
||||
<p>Table name: moduls</p>
|
||||
|
||||
<pre>id :integer not null, primary key
|
||||
name :string(255)
|
||||
desc :text
|
||||
depend :text
|
||||
created_at :datetime not null
|
||||
updated_at :datetime not null</pre>
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
195
app/doc/Modulgruppe.html
Normal file
@@ -0,0 +1,195 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class Modulgruppe - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>models/modulgruppe.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActiveRecord::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class Modulgruppe</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
<h2 id="label-Schema+Information">Schema Information</h2>
|
||||
|
||||
<p>Table name: modulgruppen</p>
|
||||
|
||||
<pre>id :integer not null, primary key
|
||||
typ :string(255)
|
||||
phase :integer
|
||||
name :string(255)
|
||||
desc :text
|
||||
studium_id :integer
|
||||
created_at :datetime not null
|
||||
updated_at :datetime not null</pre>
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
465
app/doc/ModulgruppenController.html
Normal file
@@ -0,0 +1,465 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class ModulgruppenController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/modulgruppen_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="ApplicationController.html">ApplicationController</a>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-create">#create</a>
|
||||
|
||||
<li><a href="#method-i-destroy">#destroy</a>
|
||||
|
||||
<li><a href="#method-i-edit">#edit</a>
|
||||
|
||||
<li><a href="#method-i-index">#index</a>
|
||||
|
||||
<li><a href="#method-i-new">#new</a>
|
||||
|
||||
<li><a href="#method-i-show">#show</a>
|
||||
|
||||
<li><a href="#method-i-update">#update</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class ModulgruppenController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-create" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">create</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>POST /modulgruppen</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="create-source">
|
||||
<pre><span class="ruby-comment"># File controllers/modulgruppen_controller.rb, line 44</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>
|
||||
<span class="ruby-ivar">@modulgruppe</span> = <span class="ruby-constant">Modulgruppe</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:modulgruppe</span>])
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-ivar">@studium</span>=<span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>])
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-ivar">@studium</span>=<span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:modulgruppe</span>][<span class="ruby-value">:studium_id</span>])
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@modulgruppe</span>.<span class="ruby-identifier">save</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@modulgruppe</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Modulgruppe was successfully created.'</span> }
|
||||
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"new"</span> }
|
||||
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- create-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- create-method -->
|
||||
|
||||
|
||||
<div id="method-i-destroy" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">destroy</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>DELETE /modulgruppen/1</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="destroy-source">
|
||||
<pre><span class="ruby-comment"># File controllers/modulgruppen_controller.rb, line 79</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">destroy</span>
|
||||
<span class="ruby-ivar">@modulgruppe</span> = <span class="ruby-constant">Modulgruppe</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@modulgruppe</span>.<span class="ruby-identifier">destroy</span>
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">modulgruppen_url</span> }
|
||||
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- destroy-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- destroy-method -->
|
||||
|
||||
|
||||
<div id="method-i-edit" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">edit</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /modulgruppen/1/edit</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="edit-source">
|
||||
<pre><span class="ruby-comment"># File controllers/modulgruppen_controller.rb, line 35</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">edit</span>
|
||||
<span class="ruby-ivar">@modulgruppe</span> = <span class="ruby-constant">Modulgruppe</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-ivar">@studium</span>=<span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>])
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- edit-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- edit-method -->
|
||||
|
||||
|
||||
<div id="method-i-index" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">index</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="index-source">
|
||||
<pre><span class="ruby-comment"># File controllers/modulgruppen_controller.rb, line 6</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
|
||||
<span class="ruby-ivar">@modulgruppen</span> = <span class="ruby-constant">Modulgruppe</span>.<span class="ruby-identifier">all</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-ivar">@studium</span>=<span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>])
|
||||
<span class="ruby-keyword">end</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- index-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- index-method -->
|
||||
|
||||
|
||||
<div id="method-i-new" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">new</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /modulgruppen/new</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="new-source">
|
||||
<pre><span class="ruby-comment"># File controllers/modulgruppen_controller.rb, line 26</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">new</span>
|
||||
<span class="ruby-ivar">@modulgruppe</span> = <span class="ruby-constant">Modulgruppe</span>.<span class="ruby-identifier">new</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-ivar">@studium</span>=<span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>])
|
||||
<span class="ruby-keyword">end</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- new-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- new-method -->
|
||||
|
||||
|
||||
<div id="method-i-show" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">show</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /modulgruppen/1</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="show-source">
|
||||
<pre><span class="ruby-comment"># File controllers/modulgruppen_controller.rb, line 16</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">show</span>
|
||||
<span class="ruby-ivar">@modulgruppe</span> = <span class="ruby-constant">Modulgruppe</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-ivar">@studium</span>=<span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>])
|
||||
<span class="ruby-keyword">end</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- show-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- show-method -->
|
||||
|
||||
|
||||
<div id="method-i-update" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">update</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="update-source">
|
||||
<pre><span class="ruby-comment"># File controllers/modulgruppen_controller.rb, line 63</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>
|
||||
<span class="ruby-ivar">@modulgruppe</span> = <span class="ruby-constant">Modulgruppe</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@modulgruppe</span>.<span class="ruby-identifier">update_attributes</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:modulgruppe</span>])
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@modulgruppe</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Modulgruppe was successfully updated.'</span> }
|
||||
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"edit"</span> }
|
||||
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- update-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- update-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
176
app/doc/ModulgruppenHelper.html
Normal file
@@ -0,0 +1,176 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>module ModulgruppenHelper - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="module">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>helpers/modulgruppen_helper.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">module ModulgruppenHelper</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
470
app/doc/ModulsController.html
Normal file
@@ -0,0 +1,470 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class ModulsController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/moduls_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="ApplicationController.html">ApplicationController</a>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-create">#create</a>
|
||||
|
||||
<li><a href="#method-i-destroy">#destroy</a>
|
||||
|
||||
<li><a href="#method-i-edit">#edit</a>
|
||||
|
||||
<li><a href="#method-i-index">#index</a>
|
||||
|
||||
<li><a href="#method-i-new">#new</a>
|
||||
|
||||
<li><a href="#method-i-show">#show</a>
|
||||
|
||||
<li><a href="#method-i-update">#update</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class ModulsController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-create" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">create</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>POST /moduls POST /moduls.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="create-source">
|
||||
<pre><span class="ruby-comment"># File controllers/moduls_controller.rb, line 48</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>
|
||||
<span class="ruby-ivar">@modul</span> = <span class="ruby-constant">Modul</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:modul</span>])
|
||||
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@modul</span>.<span class="ruby-identifier">save</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">modulgruppe_path</span>(<span class="ruby-ivar">@modul</span>.<span class="ruby-identifier">modulgruppen</span>.<span class="ruby-identifier">first</span>), <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Modul was successfully created.'</span> }
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@modul</span>, <span class="ruby-identifier">status</span><span class="ruby-operator">:</span> <span class="ruby-value">:created</span>, <span class="ruby-identifier">location</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@modul</span> }
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"new"</span> }
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@modul</span>.<span class="ruby-identifier">errors</span>, <span class="ruby-identifier">status</span><span class="ruby-operator">:</span> <span class="ruby-value">:unprocessable_entity</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- create-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- create-method -->
|
||||
|
||||
|
||||
<div id="method-i-destroy" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">destroy</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>DELETE /moduls/1 DELETE /moduls/1.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="destroy-source">
|
||||
<pre><span class="ruby-comment"># File controllers/moduls_controller.rb, line 82</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">destroy</span>
|
||||
|
||||
<span class="ruby-ivar">@modul</span> = <span class="ruby-constant">Modul</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-identifier">modulgruppe</span>=<span class="ruby-ivar">@modul</span>.<span class="ruby-identifier">modulgruppen</span>.<span class="ruby-identifier">first</span>
|
||||
<span class="ruby-ivar">@modul</span>.<span class="ruby-identifier">destroy</span>
|
||||
|
||||
|
||||
<span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">modulgruppe_path</span>(<span class="ruby-identifier">modulgruppe</span>)
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- destroy-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- destroy-method -->
|
||||
|
||||
|
||||
<div id="method-i-edit" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">edit</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /moduls/1/edit</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="edit-source">
|
||||
<pre><span class="ruby-comment"># File controllers/moduls_controller.rb, line 39</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">edit</span>
|
||||
<span class="ruby-ivar">@modul</span> = <span class="ruby-constant">Modul</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-ivar">@studium</span>=<span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>])
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- edit-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- edit-method -->
|
||||
|
||||
|
||||
<div id="method-i-index" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">index</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /moduls GET /moduls.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="index-source">
|
||||
<pre><span class="ruby-comment"># File controllers/moduls_controller.rb, line 4</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
|
||||
<span class="ruby-ivar">@moduls</span> = <span class="ruby-constant">Modul</span>.<span class="ruby-identifier">all</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-ivar">@studium</span>=<span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:studium_id</span>])
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> <span class="ruby-comment"># index.html.erb</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@moduls</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- index-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- index-method -->
|
||||
|
||||
|
||||
<div id="method-i-new" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">new</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /moduls/new GET /moduls/new.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="new-source">
|
||||
<pre><span class="ruby-comment"># File controllers/moduls_controller.rb, line 28</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">new</span>
|
||||
<span class="ruby-ivar">@modul</span> = <span class="ruby-constant">Modul</span>.<span class="ruby-identifier">new</span>
|
||||
<span class="ruby-identifier">modulgruppe</span>=<span class="ruby-constant">Modulgruppe</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:modulgruppen_id</span>])
|
||||
<span class="ruby-ivar">@modul</span>.<span class="ruby-identifier">modulgruppen</span><span class="ruby-operator"><<</span><span class="ruby-identifier">modulgruppe</span>
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> <span class="ruby-comment"># new.html.erb</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@modul</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- new-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- new-method -->
|
||||
|
||||
|
||||
<div id="method-i-show" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">show</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>GET /moduls/1 GET /moduls/1.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="show-source">
|
||||
<pre><span class="ruby-comment"># File controllers/moduls_controller.rb, line 17</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">show</span>
|
||||
<span class="ruby-ivar">@modul</span> = <span class="ruby-constant">Modul</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> <span class="ruby-comment"># show.html.erb</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@modul</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- show-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- show-method -->
|
||||
|
||||
|
||||
<div id="method-i-update" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">update</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>PUT /moduls/1 PUT /moduls/1.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="update-source">
|
||||
<pre><span class="ruby-comment"># File controllers/moduls_controller.rb, line 66</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>
|
||||
<span class="ruby-ivar">@modul</span> = <span class="ruby-constant">Modul</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@modul</span>.<span class="ruby-identifier">update_attributes</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:modul</span>])
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">url_for</span>(<span class="ruby-ivar">@modul</span>), <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Modul was successfully updated.'</span> }
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">head</span> <span class="ruby-value">:no_content</span> }
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"edit"</span> }
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@modul</span>.<span class="ruby-identifier">errors</span>, <span class="ruby-identifier">status</span><span class="ruby-operator">:</span> <span class="ruby-value">:unprocessable_entity</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- update-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- update-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
176
app/doc/ModulsHelper.html
Normal file
@@ -0,0 +1,176 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>module ModulsHelper - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="module">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>helpers/moduls_helper.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">module ModulsHelper</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
194
app/doc/Neuigkeit.html
Normal file
@@ -0,0 +1,194 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class Neuigkeit - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>models/neuigkeit.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActiveRecord::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class Neuigkeit</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
<h2 id="label-Schema+Information">Schema Information</h2>
|
||||
|
||||
<p>Table name: neuigkeiten</p>
|
||||
|
||||
<pre>id :integer not null, primary key
|
||||
title :string(255)
|
||||
text :text
|
||||
datum :datetime
|
||||
rubrik_id :integer
|
||||
created_at :datetime not null
|
||||
updated_at :datetime not null</pre>
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
451
app/doc/NeuigkeitenController.html
Normal file
@@ -0,0 +1,451 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class NeuigkeitenController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/neuigkeiten_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="ApplicationController.html">ApplicationController</a>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-create">#create</a>
|
||||
|
||||
<li><a href="#method-i-destroy">#destroy</a>
|
||||
|
||||
<li><a href="#method-i-edit">#edit</a>
|
||||
|
||||
<li><a href="#method-i-index">#index</a>
|
||||
|
||||
<li><a href="#method-i-new">#new</a>
|
||||
|
||||
<li><a href="#method-i-show">#show</a>
|
||||
|
||||
<li><a href="#method-i-update">#update</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class NeuigkeitenController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-create" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">create</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="create-source">
|
||||
<pre><span class="ruby-comment"># File controllers/neuigkeiten_controller.rb, line 26</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>
|
||||
<span class="ruby-ivar">@neuigkeit</span> = <span class="ruby-constant">Neuigkeit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:neuigkeit</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@neuigkeit</span>.<span class="ruby-identifier">save</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@neuigkeit</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Neuigkeit was successfully created.'</span> }
|
||||
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"new"</span> }
|
||||
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- create-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- create-method -->
|
||||
|
||||
|
||||
<div id="method-i-destroy" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">destroy</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>DELETE /neuigkeiten/1 DELETE /neuigkeiten/1.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="destroy-source">
|
||||
<pre><span class="ruby-comment"># File controllers/neuigkeiten_controller.rb, line 57</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">destroy</span>
|
||||
<span class="ruby-ivar">@neuigkeit</span> = <span class="ruby-constant">Neuigkeit</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@neuigkeit</span>.<span class="ruby-identifier">destroy</span>
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">neuigkeiten_url</span> }
|
||||
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- destroy-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- destroy-method -->
|
||||
|
||||
|
||||
<div id="method-i-edit" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">edit</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="edit-source">
|
||||
<pre><span class="ruby-comment"># File controllers/neuigkeiten_controller.rb, line 22</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">edit</span>
|
||||
<span class="ruby-ivar">@neuigkeit</span> = <span class="ruby-constant">Neuigkeit</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- edit-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- edit-method -->
|
||||
|
||||
|
||||
<div id="method-i-index" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">index</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="index-source">
|
||||
<pre><span class="ruby-comment"># File controllers/neuigkeiten_controller.rb, line 3</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
|
||||
<span class="ruby-ivar">@neuigkeiten</span> = <span class="ruby-constant">Neuigkeit</span>.<span class="ruby-identifier">all</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- index-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- index-method -->
|
||||
|
||||
|
||||
<div id="method-i-new" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">new</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="new-source">
|
||||
<pre><span class="ruby-comment"># File controllers/neuigkeiten_controller.rb, line 15</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">new</span>
|
||||
<span class="ruby-ivar">@neuigkeit</span> = <span class="ruby-constant">Neuigkeit</span>.<span class="ruby-identifier">new</span>
|
||||
<span class="ruby-ivar">@rubrik</span>=<span class="ruby-constant">Rubrik</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:rubrik_id</span>])
|
||||
<span class="ruby-ivar">@neuigkeit</span>.<span class="ruby-identifier">rubrik</span>=<span class="ruby-ivar">@rubrik</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- new-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- new-method -->
|
||||
|
||||
|
||||
<div id="method-i-show" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">show</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="show-source">
|
||||
<pre><span class="ruby-comment"># File controllers/neuigkeiten_controller.rb, line 8</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">show</span>
|
||||
<span class="ruby-ivar">@neuigkeit</span> = <span class="ruby-constant">Neuigkeit</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">can?</span> <span class="ruby-value">:edit</span>, <span class="ruby-ivar">@neuigkeit</span>
|
||||
<span class="ruby-ivar">@toolbar_elements</span> <span class="ruby-operator"><<</span> {<span class="ruby-value">:text=</span><span class="ruby-operator">></span><span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'common.edit'</span>),<span class="ruby-value">:path=</span><span class="ruby-operator">></span><span class="ruby-identifier">edit_neuigkeit_path</span>(<span class="ruby-ivar">@neuigkeit</span>),<span class="ruby-value">:icon=</span><span class="ruby-operator">></span><span class="ruby-value">:pencil</span>}
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- show-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- show-method -->
|
||||
|
||||
|
||||
<div id="method-i-update" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">update</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="update-source">
|
||||
<pre><span class="ruby-comment"># File controllers/neuigkeiten_controller.rb, line 41</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>
|
||||
<span class="ruby-ivar">@neuigkeit</span> = <span class="ruby-constant">Neuigkeit</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@neuigkeit</span>.<span class="ruby-identifier">update_attributes</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:neuigkeit</span>])
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@neuigkeit</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Neuigkeit was successfully updated.'</span> }
|
||||
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"edit"</span> }
|
||||
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- update-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- update-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
226
app/doc/PagesHelper.html
Normal file
@@ -0,0 +1,226 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>module PagesHelper - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="module">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>helpers/pages_helper.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-breadcrumbs">#breadcrumbs</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">module PagesHelper</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-breadcrumbs" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">breadcrumbs</span><span
|
||||
class="method-args">(page)</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="breadcrumbs-source">
|
||||
<pre><span class="ruby-comment"># File helpers/pages_helper.rb, line 3</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">breadcrumbs</span>(<span class="ruby-identifier">page</span>)
|
||||
<span class="ruby-identifier">s</span> = []
|
||||
<span class="ruby-identifier">page</span>.<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">content_tag</span>(<span class="ruby-identifier">link_to</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">page_path</span>(<span class="ruby-identifier">p</span>))
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-identifier">raw</span>(<span class="ruby-identifier">s</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">' '</span>))
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- breadcrumbs-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- breadcrumbs-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
193
app/doc/Role.html
Normal file
@@ -0,0 +1,193 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class Role - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>models/role.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActiveRecord::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class Role</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
<h2 id="label-Schema+Information">Schema Information</h2>
|
||||
|
||||
<p>Table name: roles</p>
|
||||
|
||||
<pre>id :integer not null, primary key
|
||||
name :string(255)
|
||||
resource_id :integer
|
||||
resource_type :string(255)
|
||||
created_at :datetime not null
|
||||
updated_at :datetime not null</pre>
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
242
app/doc/Rubrik.html
Normal file
@@ -0,0 +1,242 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class Rubrik - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>models/rubrik.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActiveRecord::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-moderator">#moderator</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class Rubrik</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
<h2 id="label-Schema+Information">Schema Information</h2>
|
||||
|
||||
<p>Table name: rubriken</p>
|
||||
|
||||
<pre>id :integer not null, primary key
|
||||
name :string(255)
|
||||
desc :text
|
||||
prio :integer
|
||||
created_at :datetime not null
|
||||
updated_at :datetime not null</pre>
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-moderator" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">moderator</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="moderator-source">
|
||||
<pre><span class="ruby-comment"># File models/rubrik.rb, line 17</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">moderator</span>
|
||||
<span class="ruby-identifier">u</span>=<span class="ruby-constant">User</span>.<span class="ruby-identifier">with_role</span>(<span class="ruby-value">:newsmoderator</span>).<span class="ruby-identifier">first</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">u</span>.<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-identifier">u</span>.<span class="ruby-identifier">id</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- moderator-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- moderator-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
554
app/doc/RubrikenController.html
Normal file
@@ -0,0 +1,554 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class RubrikenController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/rubriken_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="ApplicationController.html">ApplicationController</a>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-addmoderator">#addmoderator</a>
|
||||
|
||||
<li><a href="#method-i-alle_verwalten">#alle_verwalten</a>
|
||||
|
||||
<li><a href="#method-i-create">#create</a>
|
||||
|
||||
<li><a href="#method-i-destroy">#destroy</a>
|
||||
|
||||
<li><a href="#method-i-edit">#edit</a>
|
||||
|
||||
<li><a href="#method-i-index">#index</a>
|
||||
|
||||
<li><a href="#method-i-new">#new</a>
|
||||
|
||||
<li><a href="#method-i-show">#show</a>
|
||||
|
||||
<li><a href="#method-i-update">#update</a>
|
||||
|
||||
<li><a href="#method-i-verwalten">#verwalten</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class RubrikenController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-addmoderator" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">addmoderator</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="addmoderator-source">
|
||||
<pre><span class="ruby-comment"># File controllers/rubriken_controller.rb, line 36</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">addmoderator</span>
|
||||
<span class="ruby-ivar">@rubrik</span> = <span class="ruby-constant">Rubrik</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">can?</span> <span class="ruby-value">:addmoderator</span>, <span class="ruby-ivar">@rubrik</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:moderator</span>].<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-identifier">current_user</span>.<span class="ruby-identifier">add_role</span>(<span class="ruby-value">:newsmoderator</span>,<span class="ruby-ivar">@rubrik</span>)
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-constant">User</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:moderator</span>]).<span class="ruby-identifier">add_role</span>(<span class="ruby-value">:newsmoderator</span>, <span class="ruby-ivar">@rubrik</span>)
|
||||
<span class="ruby-keyword">end</span>
|
||||
|
||||
<span class="ruby-identifier">response_notice</span>= <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">"rubrik/moderatoradded"</span>)
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">response_notice</span>= <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">"rubrik/moderatoraddnorights"</span>)
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@rubrik</span>,<span class="ruby-value">:notice</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">response_notice</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- addmoderator-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- addmoderator-method -->
|
||||
|
||||
|
||||
<div id="method-i-alle_verwalten" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">alle_verwalten</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="alle_verwalten-source">
|
||||
<pre><span class="ruby-comment"># File controllers/rubriken_controller.rb, line 70</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">alle_verwalten</span>
|
||||
<span class="ruby-ivar">@rubriken</span> =<span class="ruby-constant">Rubrik</span>.<span class="ruby-identifier">all</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- alle_verwalten-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- alle_verwalten-method -->
|
||||
|
||||
|
||||
<div id="method-i-create" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">create</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="create-source">
|
||||
<pre><span class="ruby-comment"># File controllers/rubriken_controller.rb, line 24</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>
|
||||
<span class="ruby-ivar">@rubrik</span> = <span class="ruby-constant">Rubrik</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:rubrik</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@rubrik</span>.<span class="ruby-identifier">save</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@rubrik</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Rubrik was successfully created.'</span> }
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"new"</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- create-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- create-method -->
|
||||
|
||||
|
||||
<div id="method-i-destroy" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">destroy</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>DELETE /rubriken/1 DELETE /rubriken/1.json</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="destroy-source">
|
||||
<pre><span class="ruby-comment"># File controllers/rubriken_controller.rb, line 75</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">destroy</span>
|
||||
<span class="ruby-ivar">@rubrik</span> = <span class="ruby-constant">Rubrik</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@rubrik</span>.<span class="ruby-identifier">destroy</span>
|
||||
<span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">rubriken_url</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- destroy-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- destroy-method -->
|
||||
|
||||
|
||||
<div id="method-i-edit" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">edit</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="edit-source">
|
||||
<pre><span class="ruby-comment"># File controllers/rubriken_controller.rb, line 19</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">edit</span>
|
||||
<span class="ruby-ivar">@rubrik</span> = <span class="ruby-constant">Rubrik</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- edit-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- edit-method -->
|
||||
|
||||
|
||||
<div id="method-i-index" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">index</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="index-source">
|
||||
<pre><span class="ruby-comment"># File controllers/rubriken_controller.rb, line 3</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
|
||||
<span class="ruby-ivar">@rubriken</span> = <span class="ruby-constant">Rubrik</span>.<span class="ruby-identifier">all</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- index-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- index-method -->
|
||||
|
||||
|
||||
<div id="method-i-new" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">new</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="new-source">
|
||||
<pre><span class="ruby-comment"># File controllers/rubriken_controller.rb, line 14</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">new</span>
|
||||
<span class="ruby-ivar">@rubrik</span> = <span class="ruby-constant">Rubrik</span>.<span class="ruby-identifier">new</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- new-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- new-method -->
|
||||
|
||||
|
||||
<div id="method-i-show" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">show</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="show-source">
|
||||
<pre><span class="ruby-comment"># File controllers/rubriken_controller.rb, line 9</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">show</span>
|
||||
<span class="ruby-ivar">@rubrik</span> = <span class="ruby-constant">Rubrik</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@moderatoren</span>=<span class="ruby-constant">User</span>.<span class="ruby-identifier">with_role</span>(<span class="ruby-value">:newsmoderator</span>,<span class="ruby-ivar">@rubrik</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- show-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- show-method -->
|
||||
|
||||
|
||||
<div id="method-i-update" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">update</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="update-source">
|
||||
<pre><span class="ruby-comment"># File controllers/rubriken_controller.rb, line 53</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>
|
||||
<span class="ruby-ivar">@rubrik</span> = <span class="ruby-constant">Rubrik</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@rubrik</span>.<span class="ruby-identifier">update_attributes</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:rubrik</span>])
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@rubrik</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Rubrik was successfully updated.'</span> }
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">head</span> <span class="ruby-value">:no_content</span> }
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"edit"</span> }
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">json</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">json</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@rubrik</span>.<span class="ruby-identifier">errors</span>, <span class="ruby-identifier">status</span><span class="ruby-operator">:</span> <span class="ruby-value">:unprocessable_entity</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- update-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- update-method -->
|
||||
|
||||
|
||||
<div id="method-i-verwalten" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">verwalten</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="verwalten-source">
|
||||
<pre><span class="ruby-comment"># File controllers/rubriken_controller.rb, line 66</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">verwalten</span>
|
||||
<span class="ruby-ivar">@rubrik</span> = <span class="ruby-constant">Rubrik</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@moderatoren</span>=<span class="ruby-constant">User</span>.<span class="ruby-identifier">with_role</span>(<span class="ruby-value">:newsmoderator</span>,<span class="ruby-ivar">@rubrik</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- verwalten-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- verwalten-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
176
app/doc/RubrikenHelper.html
Normal file
@@ -0,0 +1,176 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>module RubrikenHelper - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="module">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>helpers/rubriken_helper.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">module RubrikenHelper</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
194
app/doc/Semester.html
Normal file
@@ -0,0 +1,194 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class Semester - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>models/semester.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActiveRecord::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class Semester</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
<h2 id="label-Schema+Information">Schema Information</h2>
|
||||
|
||||
<p>Table name: semesters</p>
|
||||
|
||||
<pre>id :integer not null, primary key
|
||||
name :string(255)
|
||||
nummer :integer
|
||||
studium_id :integer
|
||||
ssws :string(255)
|
||||
created_at :datetime not null
|
||||
updated_at :datetime not null</pre>
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
440
app/doc/SemestersController.html
Normal file
@@ -0,0 +1,440 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class SemestersController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/semesters_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="ApplicationController.html">ApplicationController</a>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-create">#create</a>
|
||||
|
||||
<li><a href="#method-i-destroy">#destroy</a>
|
||||
|
||||
<li><a href="#method-i-edit">#edit</a>
|
||||
|
||||
<li><a href="#method-i-index">#index</a>
|
||||
|
||||
<li><a href="#method-i-new">#new</a>
|
||||
|
||||
<li><a href="#method-i-show">#show</a>
|
||||
|
||||
<li><a href="#method-i-update">#update</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class SemestersController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-create" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">create</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="create-source">
|
||||
<pre><span class="ruby-comment"># File controllers/semesters_controller.rb, line 21</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>
|
||||
<span class="ruby-ivar">@semester</span> = <span class="ruby-constant">Semester</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:semester</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@semester</span>.<span class="ruby-identifier">save</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@semester</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Semester was successfully created.'</span> }
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"new"</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- create-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- create-method -->
|
||||
|
||||
|
||||
<div id="method-i-destroy" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">destroy</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="destroy-source">
|
||||
<pre><span class="ruby-comment"># File controllers/semesters_controller.rb, line 45</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">destroy</span>
|
||||
<span class="ruby-ivar">@semester</span> = <span class="ruby-constant">Semester</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@semester</span>.<span class="ruby-identifier">destroy</span>
|
||||
<span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">semester_url</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- destroy-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- destroy-method -->
|
||||
|
||||
|
||||
<div id="method-i-edit" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">edit</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="edit-source">
|
||||
<pre><span class="ruby-comment"># File controllers/semesters_controller.rb, line 17</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">edit</span>
|
||||
<span class="ruby-ivar">@semester</span> = <span class="ruby-constant">Semester</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- edit-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- edit-method -->
|
||||
|
||||
|
||||
<div id="method-i-index" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">index</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="index-source">
|
||||
<pre><span class="ruby-comment"># File controllers/semesters_controller.rb, line 3</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
|
||||
<span class="ruby-ivar">@semesters</span> = <span class="ruby-constant">Semester</span>.<span class="ruby-identifier">all</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- index-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- index-method -->
|
||||
|
||||
|
||||
<div id="method-i-new" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">new</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="new-source">
|
||||
<pre><span class="ruby-comment"># File controllers/semesters_controller.rb, line 13</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">new</span>
|
||||
<span class="ruby-ivar">@semester</span> = <span class="ruby-constant">Semester</span>.<span class="ruby-identifier">new</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- new-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- new-method -->
|
||||
|
||||
|
||||
<div id="method-i-show" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">show</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="show-source">
|
||||
<pre><span class="ruby-comment"># File controllers/semesters_controller.rb, line 8</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">show</span>
|
||||
<span class="ruby-ivar">@semester</span> = <span class="ruby-constant">Semester</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- show-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- show-method -->
|
||||
|
||||
|
||||
<div id="method-i-update" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">update</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="update-source">
|
||||
<pre><span class="ruby-comment"># File controllers/semesters_controller.rb, line 33</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>
|
||||
<span class="ruby-ivar">@semester</span> = <span class="ruby-constant">Semester</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@semester</span>.<span class="ruby-identifier">update_attributes</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:semester</span>])
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-ivar">@semester</span>, <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Semester was successfully updated.'</span> }
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"edit"</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- update-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- update-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
176
app/doc/SemestersHelper.html
Normal file
@@ -0,0 +1,176 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>module SemestersHelper - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="module">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>helpers/semesters_helper.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">module SemestersHelper</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
459
app/doc/StudienController.html
Normal file
@@ -0,0 +1,459 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class StudienController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/studien_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="ApplicationController.html">ApplicationController</a>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-create">#create</a>
|
||||
|
||||
<li><a href="#method-i-destroy">#destroy</a>
|
||||
|
||||
<li><a href="#method-i-edit">#edit</a>
|
||||
|
||||
<li><a href="#method-i-index">#index</a>
|
||||
|
||||
<li><a href="#method-i-new">#new</a>
|
||||
|
||||
<li><a href="#method-i-show">#show</a>
|
||||
|
||||
<li><a href="#method-i-update">#update</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class StudienController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-create" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">create</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="create-source">
|
||||
<pre><span class="ruby-comment"># File controllers/studien_controller.rb, line 44</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>
|
||||
<span class="ruby-ivar">@studium</span> = <span class="ruby-constant">Studium</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:studium</span>])
|
||||
<span class="ruby-identifier">respond_to</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">format</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@studium</span>.<span class="ruby-identifier">save</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">url_for</span>(<span class="ruby-ivar">@studium</span>), <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Studium was successfully created.'</span> }
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">format</span>.<span class="ruby-identifier">html</span> { <span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"new"</span> }
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- create-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- create-method -->
|
||||
|
||||
|
||||
<div id="method-i-destroy" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">destroy</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="destroy-source">
|
||||
<pre><span class="ruby-comment"># File controllers/studien_controller.rb, line 68</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">destroy</span>
|
||||
<span class="ruby-ivar">@studium</span> = <span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@studium</span>.<span class="ruby-identifier">destroy</span>
|
||||
<span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">studien_url</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- destroy-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- destroy-method -->
|
||||
|
||||
|
||||
<div id="method-i-edit" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">edit</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="edit-source">
|
||||
<pre><span class="ruby-comment"># File controllers/studien_controller.rb, line 38</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">edit</span>
|
||||
<span class="ruby-ivar">@studium</span> = <span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@toolbar_elements</span>=[{<span class="ruby-value">:text</span> =<span class="ruby-operator">></span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'studien.anzeigen'</span>) , <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">url_for</span>(<span class="ruby-ivar">@studium</span>) }]
|
||||
<span class="ruby-ivar">@toolbar_elements</span><span class="ruby-operator"><<</span>{<span class="ruby-value">:text</span> =<span class="ruby-operator">></span><span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'studien.allestudien'</span>),<span class="ruby-value">:path=</span><span class="ruby-operator">></span><span class="ruby-identifier">studien_path</span>(<span class="ruby-ivar">@studium</span>)}
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- edit-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- edit-method -->
|
||||
|
||||
|
||||
<div id="method-i-index" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">index</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="index-source">
|
||||
<pre><span class="ruby-comment"># File controllers/studien_controller.rb, line 5</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
|
||||
<span class="ruby-ivar">@studien</span> = <span class="ruby-constant">Studium</span>.<span class="ruby-identifier">all</span>
|
||||
<span class="ruby-ivar">@toolbar_elements</span><span class="ruby-operator"><<</span>{<span class="ruby-value">:icon</span> =<span class="ruby-operator">></span><span class="ruby-value">:plus</span>, <span class="ruby-value">:text=</span><span class="ruby-operator">></span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'studien.new'</span>) ,<span class="ruby-value">:path=</span><span class="ruby-operator">></span><span class="ruby-identifier">new_studium_path</span> }
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- index-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- index-method -->
|
||||
|
||||
|
||||
<div id="method-i-new" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">new</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="new-source">
|
||||
<pre><span class="ruby-comment"># File controllers/studien_controller.rb, line 34</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">new</span>
|
||||
<span class="ruby-ivar">@studium</span> = <span class="ruby-constant">Studium</span>.<span class="ruby-identifier">new</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- new-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- new-method -->
|
||||
|
||||
|
||||
<div id="method-i-show" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">show</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="show-source">
|
||||
<pre><span class="ruby-comment"># File controllers/studien_controller.rb, line 10</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">show</span>
|
||||
<span class="ruby-ivar">@studium</span>= <span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
<span class="ruby-ivar">@studienphasen</span>=[]
|
||||
[<span class="ruby-value">1</span>, <span class="ruby-value">2</span> ,<span class="ruby-value">3</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ph</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">modulgruppen_phase</span>=<span class="ruby-ivar">@studium</span>.<span class="ruby-identifier">modulgruppen</span>.<span class="ruby-identifier">where</span>(<span class="ruby-value">:phase=</span><span class="ruby-operator">></span><span class="ruby-identifier">ph</span>)
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">modulgruppen_phase</span>.<span class="ruby-identifier">count</span><span class="ruby-operator">==</span><span class="ruby-value">1</span>
|
||||
<span class="ruby-identifier">opts</span>={<span class="ruby-value">:width=</span><span class="ruby-operator">></span><span class="ruby-value">12</span>, <span class="ruby-value">:slice=</span><span class="ruby-operator">></span><span class="ruby-value">1</span>}
|
||||
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">modulgruppen_phase</span>.<span class="ruby-identifier">count</span> <span class="ruby-operator"><=</span> <span class="ruby-value">4</span>
|
||||
<span class="ruby-identifier">opts</span>={<span class="ruby-value">:width=</span><span class="ruby-operator">></span><span class="ruby-value">6</span>, <span class="ruby-value">:slice=</span><span class="ruby-operator">></span><span class="ruby-value">2</span>}
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">opts</span>={<span class="ruby-value">:width=</span><span class="ruby-operator">></span><span class="ruby-value">4</span>, <span class="ruby-value">:slice=</span><span class="ruby-operator">></span><span class="ruby-value">3</span>}
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-identifier">modulgruppen</span> =[]
|
||||
<span class="ruby-identifier">modulgruppen_phase</span>.<span class="ruby-identifier">each_slice</span>(<span class="ruby-identifier">opts</span>[<span class="ruby-value">:slice</span>]) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">modulgruppen</span><span class="ruby-operator"><<</span><span class="ruby-identifier">s</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-ivar">@studienphasen</span> <span class="ruby-operator"><<</span> {<span class="ruby-value">:modulgruppen=</span><span class="ruby-operator">></span><span class="ruby-identifier">modulgruppen</span>, <span class="ruby-value">:phase</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">ph</span>}.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>)
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-ivar">@toolbar_elements</span>=[{<span class="ruby-value">:icon</span> =<span class="ruby-operator">></span><span class="ruby-value">:plus</span> ,<span class="ruby-value">:text=</span><span class="ruby-operator">></span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'studien.new'</span>) , <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">new_studium_modulgruppe_path</span>(<span class="ruby-ivar">@studium</span>) }]
|
||||
<span class="ruby-ivar">@toolbar_elements</span><span class="ruby-operator"><<</span>{<span class="ruby-value">:icon=</span><span class="ruby-operator">></span><span class="ruby-value">:pencil</span>,<span class="ruby-value">:text</span> =<span class="ruby-operator">></span><span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'common.edit'</span>),<span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">edit_studium_path</span>(<span class="ruby-ivar">@studium</span>)}
|
||||
<span class="ruby-ivar">@toolbar_elements</span><span class="ruby-operator"><<</span>{<span class="ruby-value">:text=</span><span class="ruby-operator">></span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'common.delete'</span>),<span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">studium_path</span>(<span class="ruby-ivar">@studium</span>), <span class="ruby-value">:method=</span><span class="ruby-operator">></span> <span class="ruby-value">:delete</span>,<span class="ruby-value">:confirm=</span><span class="ruby-operator">></span><span class="ruby-string">"Sure?"</span> }
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- show-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- show-method -->
|
||||
|
||||
|
||||
<div id="method-i-update" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">update</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="update-source">
|
||||
<pre><span class="ruby-comment"># File controllers/studien_controller.rb, line 56</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>
|
||||
<span class="ruby-ivar">@studium</span> = <span class="ruby-constant">Studium</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:id</span>])
|
||||
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@studium</span>.<span class="ruby-identifier">update_attributes</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">:studium</span>])
|
||||
<span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">url_for</span>(<span class="ruby-ivar">@studium</span>), <span class="ruby-identifier">notice</span><span class="ruby-operator">:</span> <span class="ruby-string">'Studium was successfully updated.'</span>
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-identifier">render</span> <span class="ruby-identifier">action</span><span class="ruby-operator">:</span> <span class="ruby-string">"edit"</span>
|
||||
|
||||
<span class="ruby-keyword">end</span>
|
||||
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- update-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- update-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
176
app/doc/StudienHelper.html
Normal file
@@ -0,0 +1,176 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>module StudienHelper - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="module">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>helpers/studien_helper.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">module StudienHelper</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
195
app/doc/Studium.html
Normal file
@@ -0,0 +1,195 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class Studium - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>models/studium.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActiveRecord::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class Studium</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
<h2 id="label-Schema+Information">Schema Information</h2>
|
||||
|
||||
<p>Table name: studien</p>
|
||||
|
||||
<pre>id :integer not null, primary key
|
||||
zahl :string(255)
|
||||
name :string(255)
|
||||
shortdesc :text
|
||||
desc :text
|
||||
typ :string(255)
|
||||
created_at :datetime not null
|
||||
updated_at :datetime not null</pre>
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
176
app/doc/StudmodsHelper.html
Normal file
@@ -0,0 +1,176 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>module StudmodsHelper - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="module">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>helpers/studmods_helper.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">module StudmodsHelper</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
228
app/doc/TinymceTextInput.html
Normal file
@@ -0,0 +1,228 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class TinymceTextInput - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>inputs/tinymce_text_input.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">FormtasticBootstrap::Inputs::TextInput
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-input_html_options">#input_html_options</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class TinymceTextInput</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-input_html_options" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">input_html_options</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="input_html_options-source">
|
||||
<pre><span class="ruby-comment"># File inputs/tinymce_text_input.rb, line 2</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">input_html_options</span>
|
||||
<span class="ruby-keyword">super</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-value">:class</span> =<span class="ruby-operator">></span> <span class="ruby-string">"tinymce"</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- input_html_options-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- input_html_options-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
207
app/doc/User.html
Normal file
@@ -0,0 +1,207 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class User - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>models/user.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link">ActiveRecord::Base
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class User</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
<h2 id="label-Schema+Information">Schema Information</h2>
|
||||
|
||||
<p>Table name: users</p>
|
||||
|
||||
<pre>id :integer not null, primary key
|
||||
email :string(255) default(""), not null
|
||||
encrypted_password :string(255) default(""), not null
|
||||
reset_password_token :string(255)
|
||||
reset_password_sent_at :datetime
|
||||
remember_created_at :datetime
|
||||
sign_in_count :integer default(0)
|
||||
current_sign_in_at :datetime
|
||||
last_sign_in_at :datetime
|
||||
current_sign_in_ip :string(255)
|
||||
last_sign_in_ip :string(255)
|
||||
confirmation_token :string(255)
|
||||
confirmed_at :datetime
|
||||
confirmation_sent_at :datetime
|
||||
unconfirmed_email :string(255)
|
||||
failed_attempts :integer default(0)
|
||||
unlock_token :string(255)
|
||||
locked_at :datetime
|
||||
created_at :datetime not null
|
||||
updated_at :datetime not null</pre>
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
228
app/doc/UsersController.html
Normal file
@@ -0,0 +1,228 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>class UsersController - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body id="top" class="class">
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="file-metadata">
|
||||
<nav id="file-list-section" class="section">
|
||||
<h3 class="section-header">Defined In</h3>
|
||||
<ul>
|
||||
<li>controllers/users_controller.rb
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<nav id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="ApplicationController.html">ApplicationController</a>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<nav id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-index">#index</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">class UsersController</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="method-i-index" class="method-detail ">
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">index</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="index-source">
|
||||
<pre><span class="ruby-comment"># File controllers/users_controller.rb, line 2</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index</span>
|
||||
<span class="ruby-ivar">@users</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">all</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- index-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- index-method -->
|
||||
|
||||
|
||||
</section><!-- public-instance-method-details -->
|
||||
|
||||
</section><!-- 5Buntitled-5D -->
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
37
app/doc/created.rid
Normal file
@@ -0,0 +1,37 @@
|
||||
Tue, 23 Jul 2013 13:44:11 +0200
|
||||
./controllers/studien_controller.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./controllers/rubriken_controller.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./controllers/users_controller.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./controllers/config_controller.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./controllers/application_controller.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./controllers/lvas_controller.rb Mon, 22 Jul 2013 19:15:05 +0200
|
||||
./controllers/moduls_controller.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./controllers/semesters_controller.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./controllers/home_controller.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./controllers/modulgruppen_controller.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./controllers/beispiele_controller.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./controllers/neuigkeiten_controller.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./helpers/studien_helper.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./helpers/pages_helper.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./helpers/rubriken_helper.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./helpers/moduls_helper.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./helpers/modulgruppen_helper.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./helpers/studmods_helper.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./helpers/semesters_helper.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./helpers/beispiele_helper.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./helpers/application_helper.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./helpers/lvas_helper.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./helpers/neuigkeiten_helper.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./models/modulgruppe.rb Tue, 23 Jul 2013 13:25:47 +0200
|
||||
./models/role.rb Tue, 23 Jul 2013 13:25:48 +0200
|
||||
./models/beispiel.rb Tue, 23 Jul 2013 13:25:48 +0200
|
||||
./models/neuigkeit.rb Tue, 23 Jul 2013 13:25:48 +0200
|
||||
./models/modul.rb Tue, 23 Jul 2013 13:25:48 +0200
|
||||
./models/ability.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./models/rubrik.rb Tue, 23 Jul 2013 13:25:48 +0200
|
||||
./models/lva.rb Tue, 23 Jul 2013 13:44:06 +0200
|
||||
./models/semester.rb Tue, 23 Jul 2013 13:25:48 +0200
|
||||
./models/studium.rb Tue, 23 Jul 2013 13:25:49 +0200
|
||||
./models/user.rb Tue, 23 Jul 2013 13:25:49 +0200
|
||||
./mailers/confirmmailer.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
./inputs/tinymce_text_input.rb Mon, 22 Jul 2013 16:40:55 +0200
|
||||
BIN
app/doc/images/add.png
Executable file
|
After Width: | Height: | Size: 733 B |
BIN
app/doc/images/brick.png
Normal file
|
After Width: | Height: | Size: 452 B |
BIN
app/doc/images/brick_link.png
Normal file
|
After Width: | Height: | Size: 764 B |
BIN
app/doc/images/bug.png
Normal file
|
After Width: | Height: | Size: 774 B |
BIN
app/doc/images/bullet_black.png
Normal file
|
After Width: | Height: | Size: 211 B |
BIN
app/doc/images/bullet_toggle_minus.png
Normal file
|
After Width: | Height: | Size: 207 B |
BIN
app/doc/images/bullet_toggle_plus.png
Normal file
|
After Width: | Height: | Size: 209 B |
BIN
app/doc/images/date.png
Normal file
|
After Width: | Height: | Size: 626 B |
BIN
app/doc/images/delete.png
Executable file
|
After Width: | Height: | Size: 715 B |
BIN
app/doc/images/find.png
Normal file
|
After Width: | Height: | Size: 659 B |
BIN
app/doc/images/loadingAnimation.gif
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
app/doc/images/macFFBgHack.png
Normal file
|
After Width: | Height: | Size: 207 B |
BIN
app/doc/images/package.png
Normal file
|
After Width: | Height: | Size: 853 B |
BIN
app/doc/images/page_green.png
Normal file
|
After Width: | Height: | Size: 621 B |
BIN
app/doc/images/page_white_text.png
Normal file
|
After Width: | Height: | Size: 342 B |
BIN
app/doc/images/page_white_width.png
Normal file
|
After Width: | Height: | Size: 309 B |
BIN
app/doc/images/plugin.png
Normal file
|
After Width: | Height: | Size: 591 B |
BIN
app/doc/images/ruby.png
Normal file
|
After Width: | Height: | Size: 592 B |
BIN
app/doc/images/tag_blue.png
Executable file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
app/doc/images/tag_green.png
Normal file
|
After Width: | Height: | Size: 613 B |
BIN
app/doc/images/transparent.png
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
app/doc/images/wrench.png
Normal file
|
After Width: | Height: | Size: 610 B |
BIN
app/doc/images/wrench_orange.png
Normal file
|
After Width: | Height: | Size: 584 B |
BIN
app/doc/images/zoom.png
Normal file
|
After Width: | Height: | Size: 692 B |
135
app/doc/index.html
Normal file
@@ -0,0 +1,135 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body>
|
||||
<nav id="metadata">
|
||||
<nav id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./table_of_contents.html#classes">Classes</a>
|
||||
<a href="./table_of_contents.html#methods">Methods</a>
|
||||
</h3>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav id="search-section" class="section project-section" class="initially-hidden">
|
||||
<form action="#" method="get" accept-charset="utf-8">
|
||||
<h3 class="section-header">
|
||||
<input type="text" name="search" placeholder="Search" id="search-field"
|
||||
title="Type to search, Up and Down to navigate, Enter to load">
|
||||
</h3>
|
||||
</form>
|
||||
|
||||
<ul id="search-results" class="initially-hidden"></ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
<nav id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class and Module Index</h3>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Ability.html">Ability</a>
|
||||
|
||||
<li><a href="./ApplicationController.html">ApplicationController</a>
|
||||
|
||||
<li><a href="./ApplicationHelper.html">ApplicationHelper</a>
|
||||
|
||||
<li><a href="./Beispiel.html">Beispiel</a>
|
||||
|
||||
<li><a href="./BeispieleController.html">BeispieleController</a>
|
||||
|
||||
<li><a href="./BeispieleHelper.html">BeispieleHelper</a>
|
||||
|
||||
<li><a href="./ConfigController.html">ConfigController</a>
|
||||
|
||||
<li><a href="./Confirmmailer.html">Confirmmailer</a>
|
||||
|
||||
<li><a href="./HomeController.html">HomeController</a>
|
||||
|
||||
<li><a href="./Lva.html">Lva</a>
|
||||
|
||||
<li><a href="./LvasController.html">LvasController</a>
|
||||
|
||||
<li><a href="./Modul.html">Modul</a>
|
||||
|
||||
<li><a href="./Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<li><a href="./ModulgruppenController.html">ModulgruppenController</a>
|
||||
|
||||
<li><a href="./ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
|
||||
<li><a href="./ModulsController.html">ModulsController</a>
|
||||
|
||||
<li><a href="./ModulsHelper.html">ModulsHelper</a>
|
||||
|
||||
<li><a href="./Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<li><a href="./NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
|
||||
<li><a href="./PagesHelper.html">PagesHelper</a>
|
||||
|
||||
<li><a href="./Role.html">Role</a>
|
||||
|
||||
<li><a href="./Rubrik.html">Rubrik</a>
|
||||
|
||||
<li><a href="./RubrikenController.html">RubrikenController</a>
|
||||
|
||||
<li><a href="./RubrikenHelper.html">RubrikenHelper</a>
|
||||
|
||||
<li><a href="./Semester.html">Semester</a>
|
||||
|
||||
<li><a href="./SemestersController.html">SemestersController</a>
|
||||
|
||||
<li><a href="./SemestersHelper.html">SemestersHelper</a>
|
||||
|
||||
<li><a href="./StudienController.html">StudienController</a>
|
||||
|
||||
<li><a href="./StudienHelper.html">StudienHelper</a>
|
||||
|
||||
<li><a href="./Studium.html">Studium</a>
|
||||
|
||||
<li><a href="./StudmodsHelper.html">StudmodsHelper</a>
|
||||
|
||||
<li><a href="./TinymceTextInput.html">TinymceTextInput</a>
|
||||
|
||||
<li><a href="./User.html">User</a>
|
||||
|
||||
<li><a href="./UsersController.html">UsersController</a>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<p>This is the API documentation for RDoc Documentation.
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
155
app/doc/js/darkfish.js
Normal file
@@ -0,0 +1,155 @@
|
||||
/**
|
||||
*
|
||||
* Darkfish Page Functions
|
||||
* $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
|
||||
*
|
||||
* Author: Michael Granger <mgranger@laika.com>
|
||||
*
|
||||
*/
|
||||
|
||||
/* Provide console simulation for firebug-less environments */
|
||||
if (!("console" in window) || !("firebug" in console)) {
|
||||
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
|
||||
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
|
||||
|
||||
window.console = {};
|
||||
for (var i = 0; i < names.length; ++i)
|
||||
window.console[names[i]] = function() {};
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Unwrap the first element that matches the given @expr@ from the targets and return them.
|
||||
*/
|
||||
$.fn.unwrap = function( expr ) {
|
||||
return this.each( function() {
|
||||
$(this).parents( expr ).eq( 0 ).after( this ).remove();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
function showSource( e ) {
|
||||
var target = e.target;
|
||||
var codeSections = $(target).
|
||||
parents('.method-detail').
|
||||
find('.method-source-code');
|
||||
|
||||
$(target).
|
||||
parents('.method-detail').
|
||||
find('.method-source-code').
|
||||
slideToggle();
|
||||
};
|
||||
|
||||
function hookSourceViews() {
|
||||
$('.method-heading').click( showSource );
|
||||
};
|
||||
|
||||
function toggleDebuggingSection() {
|
||||
$('.debugging-section').slideToggle();
|
||||
};
|
||||
|
||||
function hookDebuggingToggle() {
|
||||
$('#debugging-toggle img').click( toggleDebuggingSection );
|
||||
};
|
||||
|
||||
function hookTableOfContentsToggle() {
|
||||
$('.indexpage li .toc-toggle').each( function() {
|
||||
$(this).click( function() {
|
||||
$(this).toggleClass('open');
|
||||
});
|
||||
|
||||
var section = $(this).next();
|
||||
|
||||
$(this).click( function() {
|
||||
section.slideToggle();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function hookSearch() {
|
||||
var input = $('#search-field').eq(0);
|
||||
var result = $('#search-results').eq(0);
|
||||
$(result).show();
|
||||
|
||||
var search_section = $('#search-section').get(0);
|
||||
$(search_section).show();
|
||||
|
||||
var search = new Search(search_data, input, result);
|
||||
|
||||
search.renderItem = function(result) {
|
||||
var li = document.createElement('li');
|
||||
var html = '';
|
||||
|
||||
// TODO add relative path to <script> per-page
|
||||
html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
|
||||
if (result.params)
|
||||
html += '<span class="params">' + result.params + '</span>';
|
||||
html += '</a>';
|
||||
|
||||
|
||||
if (result.namespace)
|
||||
html += '<p class="search-namespace">' + this.hlt(result.namespace);
|
||||
|
||||
if (result.snippet)
|
||||
html += '<div class="search-snippet">' + result.snippet + '</div>';
|
||||
|
||||
li.innerHTML = html;
|
||||
|
||||
return li;
|
||||
}
|
||||
|
||||
search.select = function(result) {
|
||||
var result_element = result.get(0);
|
||||
window.location.href = result_element.firstChild.firstChild.href;
|
||||
}
|
||||
|
||||
search.scrollIntoView = search.scrollInWindow;
|
||||
};
|
||||
|
||||
function highlightTarget( anchor ) {
|
||||
console.debug( "Highlighting target '%s'.", anchor );
|
||||
|
||||
$("a[name]").each( function() {
|
||||
if ( $(this).attr("name") == anchor ) {
|
||||
if ( !$(this).parent().parent().hasClass('target-section') ) {
|
||||
console.debug( "Wrapping the target-section" );
|
||||
$('div.method-detail').unwrap( 'div.target-section' );
|
||||
$(this).parent().wrap( '<div class="target-section"></div>' );
|
||||
} else {
|
||||
console.debug( "Already wrapped." );
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function highlightLocationTarget() {
|
||||
console.debug( "Location hash: %s", window.location.hash );
|
||||
if ( ! window.location.hash || window.location.hash.length == 0 ) return;
|
||||
|
||||
var anchor = window.location.hash.substring(1);
|
||||
console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
|
||||
|
||||
highlightTarget( anchor );
|
||||
};
|
||||
|
||||
function highlightClickTarget( event ) {
|
||||
console.debug( "Highlighting click target for event %o", event.target );
|
||||
try {
|
||||
var anchor = $(event.target).attr( 'href' ).substring(1);
|
||||
console.debug( "Found target anchor: %s", anchor );
|
||||
highlightTarget( anchor );
|
||||
} catch ( err ) {
|
||||
console.error( "Exception while highlighting: %o", err );
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
$(document).ready( function() {
|
||||
hookSourceViews();
|
||||
hookDebuggingToggle();
|
||||
hookSearch();
|
||||
highlightLocationTarget();
|
||||
hookTableOfContentsToggle();
|
||||
|
||||
$('ul.link-list a').bind( "click", highlightClickTarget );
|
||||
});
|
||||
18
app/doc/js/jquery.js
vendored
Normal file
142
app/doc/js/navigation.js
Normal file
@@ -0,0 +1,142 @@
|
||||
/*
|
||||
* Navigation allows movement using the arrow keys through the search results.
|
||||
*
|
||||
* When using this library you will need to set scrollIntoView to the
|
||||
* appropriate function for your layout. Use scrollInWindow if the container
|
||||
* is not scrollable and scrollInElement if the container is a separate
|
||||
* scrolling region.
|
||||
*/
|
||||
Navigation = new function() {
|
||||
this.initNavigation = function() {
|
||||
var _this = this;
|
||||
|
||||
$(document).keydown(function(e) {
|
||||
_this.onkeydown(e);
|
||||
}).keyup(function(e) {
|
||||
_this.onkeyup(e);
|
||||
});
|
||||
|
||||
this.navigationActive = true;
|
||||
}
|
||||
|
||||
this.setNavigationActive = function(state) {
|
||||
this.navigationActive = state;
|
||||
this.clearMoveTimeout();
|
||||
}
|
||||
|
||||
this.onkeyup = function(e) {
|
||||
if (!this.navigationActive) return;
|
||||
|
||||
switch(e.keyCode) {
|
||||
case 37: //Event.KEY_LEFT:
|
||||
case 38: //Event.KEY_UP:
|
||||
case 39: //Event.KEY_RIGHT:
|
||||
case 40: //Event.KEY_DOWN:
|
||||
this.clearMoveTimeout();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
this.onkeydown = function(e) {
|
||||
if (!this.navigationActive) return;
|
||||
switch(e.keyCode) {
|
||||
case 37: //Event.KEY_LEFT:
|
||||
if (this.moveLeft()) e.preventDefault();
|
||||
break;
|
||||
case 38: //Event.KEY_UP:
|
||||
if (e.keyCode == 38 || e.ctrlKey) {
|
||||
if (this.moveUp()) e.preventDefault();
|
||||
this.startMoveTimeout(false);
|
||||
}
|
||||
break;
|
||||
case 39: //Event.KEY_RIGHT:
|
||||
if (this.moveRight()) e.preventDefault();
|
||||
break;
|
||||
case 40: //Event.KEY_DOWN:
|
||||
if (e.keyCode == 40 || e.ctrlKey) {
|
||||
if (this.moveDown()) e.preventDefault();
|
||||
this.startMoveTimeout(true);
|
||||
}
|
||||
break;
|
||||
case 13: //Event.KEY_RETURN:
|
||||
if (this.$current)
|
||||
e.preventDefault();
|
||||
this.select(this.$current);
|
||||
break;
|
||||
}
|
||||
if (e.ctrlKey && e.shiftKey) this.select(this.$current);
|
||||
}
|
||||
|
||||
this.clearMoveTimeout = function() {
|
||||
clearTimeout(this.moveTimeout);
|
||||
this.moveTimeout = null;
|
||||
}
|
||||
|
||||
this.startMoveTimeout = function(isDown) {
|
||||
if (!$.browser.mozilla && !$.browser.opera) return;
|
||||
if (this.moveTimeout) this.clearMoveTimeout();
|
||||
var _this = this;
|
||||
|
||||
var go = function() {
|
||||
if (!_this.moveTimeout) return;
|
||||
_this[isDown ? 'moveDown' : 'moveUp']();
|
||||
_this.moveTimout = setTimeout(go, 100);
|
||||
}
|
||||
this.moveTimeout = setTimeout(go, 200);
|
||||
}
|
||||
|
||||
this.moveRight = function() {
|
||||
}
|
||||
|
||||
this.moveLeft = function() {
|
||||
}
|
||||
|
||||
this.move = function(isDown) {
|
||||
}
|
||||
|
||||
this.moveUp = function() {
|
||||
return this.move(false);
|
||||
}
|
||||
|
||||
this.moveDown = function() {
|
||||
return this.move(true);
|
||||
}
|
||||
|
||||
/*
|
||||
* Scrolls to the given element in the scrollable element view.
|
||||
*/
|
||||
this.scrollInElement = function(element, view) {
|
||||
var offset, viewHeight, viewScroll, height;
|
||||
offset = element.offsetTop;
|
||||
height = element.offsetHeight;
|
||||
viewHeight = view.offsetHeight;
|
||||
viewScroll = view.scrollTop;
|
||||
|
||||
if (offset - viewScroll + height > viewHeight) {
|
||||
view.scrollTop = offset - viewHeight + height;
|
||||
}
|
||||
if (offset < viewScroll) {
|
||||
view.scrollTop = offset;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Scrolls to the given element in the window. The second argument is
|
||||
* ignored
|
||||
*/
|
||||
this.scrollInWindow = function(element, ignored) {
|
||||
var offset, viewHeight, viewScroll, height;
|
||||
offset = element.offsetTop;
|
||||
height = element.offsetHeight;
|
||||
viewHeight = window.innerHeight;
|
||||
viewScroll = window.scrollY;
|
||||
|
||||
if (offset - viewScroll + height > viewHeight) {
|
||||
window.scrollTo(window.scrollX, offset - viewHeight + height);
|
||||
}
|
||||
if (offset < viewScroll) {
|
||||
window.scrollTo(window.scrollX, offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
94
app/doc/js/search.js
Normal file
@@ -0,0 +1,94 @@
|
||||
Search = function(data, input, result) {
|
||||
this.data = data;
|
||||
this.$input = $(input);
|
||||
this.$result = $(result);
|
||||
|
||||
this.$current = null;
|
||||
this.$view = this.$result.parent();
|
||||
this.searcher = new Searcher(data.index);
|
||||
this.init();
|
||||
}
|
||||
|
||||
Search.prototype = $.extend({}, Navigation, new function() {
|
||||
var suid = 1;
|
||||
|
||||
this.init = function() {
|
||||
var _this = this;
|
||||
var observer = function() {
|
||||
_this.search(_this.$input[0].value);
|
||||
};
|
||||
this.$input.keyup(observer);
|
||||
this.$input.click(observer); // mac's clear field
|
||||
|
||||
this.searcher.ready(function(results, isLast) {
|
||||
_this.addResults(results, isLast);
|
||||
})
|
||||
|
||||
this.initNavigation();
|
||||
this.setNavigationActive(false);
|
||||
}
|
||||
|
||||
this.search = function(value, selectFirstMatch) {
|
||||
value = jQuery.trim(value).toLowerCase();
|
||||
if (value) {
|
||||
this.setNavigationActive(true);
|
||||
} else {
|
||||
this.setNavigationActive(false);
|
||||
}
|
||||
|
||||
if (value == '') {
|
||||
this.lastQuery = value;
|
||||
this.$result.empty();
|
||||
this.setNavigationActive(false);
|
||||
} else if (value != this.lastQuery) {
|
||||
this.lastQuery = value;
|
||||
this.firstRun = true;
|
||||
this.searcher.find(value);
|
||||
}
|
||||
}
|
||||
|
||||
this.addResults = function(results, isLast) {
|
||||
var target = this.$result.get(0);
|
||||
if (this.firstRun && (results.length > 0 || isLast)) {
|
||||
this.$current = null;
|
||||
this.$result.empty();
|
||||
}
|
||||
|
||||
for (var i=0, l = results.length; i < l; i++) {
|
||||
target.appendChild(this.renderItem.call(this, results[i]));
|
||||
};
|
||||
|
||||
if (this.firstRun && results.length > 0) {
|
||||
this.firstRun = false;
|
||||
this.$current = $(target.firstChild);
|
||||
this.$current.addClass('current');
|
||||
}
|
||||
if (jQuery.browser.msie) this.$element[0].className += '';
|
||||
}
|
||||
|
||||
this.move = function(isDown) {
|
||||
if (!this.$current) return;
|
||||
var $next = this.$current[isDown ? 'next' : 'prev']();
|
||||
if ($next.length) {
|
||||
this.$current.removeClass('current');
|
||||
$next.addClass('current');
|
||||
this.scrollIntoView($next[0], this.$view[0]);
|
||||
this.$current = $next;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
this.hlt = function(html) {
|
||||
return this.escapeHTML(html).
|
||||
replace(/\u0001/g, '<em>').
|
||||
replace(/\u0002/g, '</em>');
|
||||
}
|
||||
|
||||
this.escapeHTML = function(html) {
|
||||
return html.replace(/[&<>]/g, function(c) {
|
||||
return '&#' + c.charCodeAt(0) + ';';
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
1
app/doc/js/search_index.js
Normal file
228
app/doc/js/searcher.js
Normal file
@@ -0,0 +1,228 @@
|
||||
Searcher = function(data) {
|
||||
this.data = data;
|
||||
this.handlers = [];
|
||||
}
|
||||
|
||||
Searcher.prototype = new function() {
|
||||
// search is performed in chunks of 1000 for non-blocking user input
|
||||
var CHUNK_SIZE = 1000;
|
||||
// do not try to find more than 100 results
|
||||
var MAX_RESULTS = 100;
|
||||
var huid = 1;
|
||||
var suid = 1;
|
||||
var runs = 0;
|
||||
|
||||
this.find = function(query) {
|
||||
var queries = splitQuery(query);
|
||||
var regexps = buildRegexps(queries);
|
||||
var highlighters = buildHilighters(queries);
|
||||
var state = { from: 0, pass: 0, limit: MAX_RESULTS, n: suid++};
|
||||
var _this = this;
|
||||
|
||||
this.currentSuid = state.n;
|
||||
|
||||
if (!query) return;
|
||||
|
||||
var run = function() {
|
||||
// stop current search thread if new search started
|
||||
if (state.n != _this.currentSuid) return;
|
||||
|
||||
var results =
|
||||
performSearch(_this.data, regexps, queries, highlighters, state);
|
||||
var hasMore = (state.limit > 0 && state.pass < 4);
|
||||
|
||||
triggerResults.call(_this, results, !hasMore);
|
||||
if (hasMore) {
|
||||
setTimeout(run, 2);
|
||||
}
|
||||
runs++;
|
||||
};
|
||||
runs = 0;
|
||||
|
||||
// start search thread
|
||||
run();
|
||||
}
|
||||
|
||||
/* ----- Events ------ */
|
||||
this.ready = function(fn) {
|
||||
fn.huid = huid;
|
||||
this.handlers.push(fn);
|
||||
}
|
||||
|
||||
/* ----- Utilities ------ */
|
||||
function splitQuery(query) {
|
||||
return jQuery.grep(query.split(/(\s+|::?|\(\)?)/), function(string) {
|
||||
return string.match(/\S/)
|
||||
});
|
||||
}
|
||||
|
||||
function buildRegexps(queries) {
|
||||
return jQuery.map(queries, function(query) {
|
||||
return new RegExp(query.replace(/(.)/g, '([$1])([^$1]*?)'), 'i')
|
||||
});
|
||||
}
|
||||
|
||||
function buildHilighters(queries) {
|
||||
return jQuery.map(queries, function(query) {
|
||||
return jQuery.map(query.split(''), function(l, i) {
|
||||
return '\u0001$' + (i*2+1) + '\u0002$' + (i*2+2);
|
||||
}).join('');
|
||||
});
|
||||
}
|
||||
|
||||
// function longMatchRegexp(index, longIndex, regexps) {
|
||||
// for (var i = regexps.length - 1; i >= 0; i--){
|
||||
// if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
|
||||
// };
|
||||
// return true;
|
||||
// }
|
||||
|
||||
|
||||
/* ----- Mathchers ------ */
|
||||
|
||||
/*
|
||||
* This record matches if the index starts with queries[0] and the record
|
||||
* matches all of the regexps
|
||||
*/
|
||||
function matchPassBeginning(index, longIndex, queries, regexps) {
|
||||
if (index.indexOf(queries[0]) != 0) return false;
|
||||
for (var i=1, l = regexps.length; i < l; i++) {
|
||||
if (!index.match(regexps[i]) && !longIndex.match(regexps[i]))
|
||||
return false;
|
||||
};
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* This record matches if the longIndex starts with queries[0] and the
|
||||
* longIndex matches all of the regexps
|
||||
*/
|
||||
function matchPassLongIndex(index, longIndex, queries, regexps) {
|
||||
if (longIndex.indexOf(queries[0]) != 0) return false;
|
||||
for (var i=1, l = regexps.length; i < l; i++) {
|
||||
if (!longIndex.match(regexps[i]))
|
||||
return false;
|
||||
};
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* This record matches if the index contains queries[0] and the record
|
||||
* matches all of the regexps
|
||||
*/
|
||||
function matchPassContains(index, longIndex, queries, regexps) {
|
||||
if (index.indexOf(queries[0]) == -1) return false;
|
||||
for (var i=1, l = regexps.length; i < l; i++) {
|
||||
if (!index.match(regexps[i]) && !longIndex.match(regexps[i]))
|
||||
return false;
|
||||
};
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* This record matches if regexps[0] matches the index and the record
|
||||
* matches all of the regexps
|
||||
*/
|
||||
function matchPassRegexp(index, longIndex, queries, regexps) {
|
||||
if (!index.match(regexps[0])) return false;
|
||||
for (var i=1, l = regexps.length; i < l; i++) {
|
||||
if (!index.match(regexps[i]) && !longIndex.match(regexps[i]))
|
||||
return false;
|
||||
};
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/* ----- Highlighters ------ */
|
||||
function highlightRegexp(info, queries, regexps, highlighters) {
|
||||
var result = createResult(info);
|
||||
for (var i=0, l = regexps.length; i < l; i++) {
|
||||
result.title = result.title.replace(regexps[i], highlighters[i]);
|
||||
result.namespace = result.namespace.replace(regexps[i], highlighters[i]);
|
||||
};
|
||||
return result;
|
||||
}
|
||||
|
||||
function hltSubstring(string, pos, length) {
|
||||
return string.substring(0, pos) + '\u0001' + string.substring(pos, pos + length) + '\u0002' + string.substring(pos + length);
|
||||
}
|
||||
|
||||
function highlightQuery(info, queries, regexps, highlighters) {
|
||||
var result = createResult(info);
|
||||
var pos = 0;
|
||||
var lcTitle = result.title.toLowerCase();
|
||||
|
||||
pos = lcTitle.indexOf(queries[0]);
|
||||
if (pos != -1) {
|
||||
result.title = hltSubstring(result.title, pos, queries[0].length);
|
||||
}
|
||||
|
||||
result.namespace = result.namespace.replace(regexps[0], highlighters[0]);
|
||||
for (var i=1, l = regexps.length; i < l; i++) {
|
||||
result.title = result.title.replace(regexps[i], highlighters[i]);
|
||||
result.namespace = result.namespace.replace(regexps[i], highlighters[i]);
|
||||
};
|
||||
return result;
|
||||
}
|
||||
|
||||
function createResult(info) {
|
||||
var result = {};
|
||||
result.title = info[0];
|
||||
result.namespace = info[1];
|
||||
result.path = info[2];
|
||||
result.params = info[3];
|
||||
result.snippet = info[4];
|
||||
return result;
|
||||
}
|
||||
|
||||
/* ----- Searching ------ */
|
||||
function performSearch(data, regexps, queries, highlighters, state) {
|
||||
var searchIndex = data.searchIndex;
|
||||
var longSearchIndex = data.longSearchIndex;
|
||||
var info = data.info;
|
||||
var result = [];
|
||||
var i = state.from;
|
||||
var l = searchIndex.length;
|
||||
var togo = CHUNK_SIZE;
|
||||
var matchFunc, hltFunc;
|
||||
|
||||
while (state.pass < 4 && state.limit > 0 && togo > 0) {
|
||||
if (state.pass == 0) {
|
||||
matchFunc = matchPassBeginning;
|
||||
hltFunc = highlightQuery;
|
||||
} else if (state.pass == 1) {
|
||||
matchFunc = matchPassLongIndex;
|
||||
hltFunc = highlightQuery;
|
||||
} else if (state.pass == 2) {
|
||||
matchFunc = matchPassContains;
|
||||
hltFunc = highlightQuery;
|
||||
} else if (state.pass == 3) {
|
||||
matchFunc = matchPassRegexp;
|
||||
hltFunc = highlightRegexp;
|
||||
}
|
||||
|
||||
for (; togo > 0 && i < l && state.limit > 0; i++, togo--) {
|
||||
if (info[i].n == state.n) continue;
|
||||
if (matchFunc(searchIndex[i], longSearchIndex[i], queries, regexps)) {
|
||||
info[i].n = state.n;
|
||||
result.push(hltFunc(info[i], queries, regexps, highlighters));
|
||||
state.limit--;
|
||||
}
|
||||
};
|
||||
if (searchIndex.length <= i) {
|
||||
state.pass++;
|
||||
i = state.from = 0;
|
||||
} else {
|
||||
state.from = i;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function triggerResults(results, isLast) {
|
||||
jQuery.each(this.handlers, function(i, fn) {
|
||||
fn.call(this, results, isLast)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
543
app/doc/rdoc.css
Normal file
@@ -0,0 +1,543 @@
|
||||
/*
|
||||
* "Darkfish" Rdoc CSS
|
||||
* $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $
|
||||
*
|
||||
* Author: Michael Granger <ged@FaerieMUD.org>
|
||||
*
|
||||
*/
|
||||
|
||||
/* Base Green is: #6C8C22 */
|
||||
|
||||
* { padding: 0; margin: 0; }
|
||||
|
||||
body {
|
||||
background: #efefef;
|
||||
font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
|
||||
margin-left: 40px;
|
||||
}
|
||||
body.file-popup {
|
||||
font-size: 90%;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 300%;
|
||||
text-shadow: rgba(135,145,135,0.65) 2px 2px 3px;
|
||||
color: #6C8C22;
|
||||
}
|
||||
h2,h3,h4 { margin-top: 1.5em; }
|
||||
|
||||
:link,
|
||||
:visited {
|
||||
color: #6C8C22;
|
||||
text-decoration: none;
|
||||
}
|
||||
:link:hover,
|
||||
:visited:hover {
|
||||
border-bottom: 1px dotted #6C8C22;
|
||||
}
|
||||
|
||||
pre {
|
||||
background: #ddd;
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
|
||||
/* @group Generic Classes */
|
||||
|
||||
.initially-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#search-field {
|
||||
width: 98%;
|
||||
background: #eee;
|
||||
border: none;
|
||||
height: 1.5em;
|
||||
-webkit-border-radius: 4px;
|
||||
}
|
||||
#search-field:focus {
|
||||
background: #f1edba;
|
||||
}
|
||||
#search-field:-moz-placeholder,
|
||||
#search-field::-webkit-input-placeholder {
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.missing-docs {
|
||||
font-size: 120%;
|
||||
background: white url(images/wrench_orange.png) no-repeat 4px center;
|
||||
color: #ccc;
|
||||
line-height: 2em;
|
||||
border: 1px solid #d00;
|
||||
opacity: 1;
|
||||
padding-left: 20px;
|
||||
text-indent: 24px;
|
||||
letter-spacing: 3px;
|
||||
font-weight: bold;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
}
|
||||
|
||||
.target-section {
|
||||
border: 2px solid #dcce90;
|
||||
border-left-width: 8px;
|
||||
padding: 0 1em;
|
||||
background: #fff3c2;
|
||||
}
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Index Page, Standalone file pages */
|
||||
.indexpage ul {
|
||||
line-height: 160%;
|
||||
list-style: none;
|
||||
}
|
||||
.indexpage ul :link,
|
||||
.indexpage ul :visited {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.indexpage li {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.indexpage ul > li {
|
||||
background: url(images/bullet_black.png) no-repeat left 4px;
|
||||
}
|
||||
.indexpage li.method {
|
||||
background: url(images/plugin.png) no-repeat left 4px;
|
||||
}
|
||||
.indexpage li.module {
|
||||
background: url(images/package.png) no-repeat left 4px;
|
||||
}
|
||||
.indexpage li.class {
|
||||
background: url(images/ruby.png) no-repeat left 4px;
|
||||
}
|
||||
.indexpage li.file {
|
||||
background: url(images/page_white_text.png) no-repeat left 4px;
|
||||
}
|
||||
.indexpage li li {
|
||||
background: url(images/tag_blue.png) no-repeat left 4px;
|
||||
}
|
||||
.indexpage li .toc-toggle {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: url(images/add.png) no-repeat;
|
||||
}
|
||||
|
||||
.indexpage li .toc-toggle.open {
|
||||
background: url(images/delete.png) no-repeat;
|
||||
}
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Top-Level Structure */
|
||||
|
||||
#metadata {
|
||||
float: left;
|
||||
width: 260px;
|
||||
}
|
||||
|
||||
#documentation {
|
||||
margin: 2em 1em 5em 300px;
|
||||
min-width: 340px;
|
||||
}
|
||||
|
||||
#validator-badges {
|
||||
clear: both;
|
||||
margin: 1em 1em 2em;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Metadata Section */
|
||||
#metadata .section {
|
||||
background-color: #dedede;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border: 1px solid #aaa;
|
||||
margin: 0 8px 8px;
|
||||
font-size: 90%;
|
||||
overflow: hidden;
|
||||
}
|
||||
#metadata h3.section-header {
|
||||
margin: 0;
|
||||
padding: 2px 8px;
|
||||
background: #ccc;
|
||||
color: #666;
|
||||
-moz-border-radius-topleft: 4px;
|
||||
-moz-border-radius-topright: 4px;
|
||||
-webkit-border-top-left-radius: 4px;
|
||||
-webkit-border-top-right-radius: 4px;
|
||||
border-bottom: 1px solid #aaa;
|
||||
}
|
||||
#metadata #home-section h3.section-header {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
#metadata ul,
|
||||
#metadata dl,
|
||||
#metadata p {
|
||||
padding: 8px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#file-metadata {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
#file-metadata ul {
|
||||
padding-left: 28px;
|
||||
list-style-image: url(images/page_green.png);
|
||||
}
|
||||
|
||||
dl.svninfo {
|
||||
color: #666;
|
||||
margin: 0;
|
||||
}
|
||||
dl.svninfo dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ul.link-list li {
|
||||
white-space: nowrap;
|
||||
}
|
||||
ul.link-list .type {
|
||||
font-size: 8px;
|
||||
text-transform: uppercase;
|
||||
color: white;
|
||||
background: #969696;
|
||||
padding: 2px 4px;
|
||||
-webkit-border-radius: 5px;
|
||||
}
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Class Metadata Section */
|
||||
#class-metadata {
|
||||
margin-top: 2em;
|
||||
}
|
||||
/* @end */
|
||||
|
||||
/* @group Project Metadata Section */
|
||||
#project-metadata {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
#project-metadata .section {
|
||||
border: 1px solid #aaa;
|
||||
}
|
||||
#project-metadata h3.section-header {
|
||||
border-bottom: 1px solid #aaa;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#project-metadata form {
|
||||
color: #777;
|
||||
background: #ccc;
|
||||
}
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Documentation Section */
|
||||
.description {
|
||||
font-size: 100%;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.description p {
|
||||
margin: 1em 0.4em;
|
||||
}
|
||||
|
||||
.description li p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.description ol,
|
||||
.description ul {
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
.description ol li,
|
||||
.description ul li {
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
.note-list {
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
.label-list {
|
||||
margin: 8px 1.5em;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
.description .label-list {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.note-list dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
.note-list dd {
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.label-list dt {
|
||||
padding: 2px 4px;
|
||||
font-weight: bold;
|
||||
background: #ddd;
|
||||
}
|
||||
.label-list dd {
|
||||
padding: 2px 12px;
|
||||
}
|
||||
.label-list dd + dt,
|
||||
.note-list dd + dt {
|
||||
margin-top: 0.7em;
|
||||
}
|
||||
|
||||
#documentation .section {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
#documentation h2.section-header {
|
||||
margin-top: 1em;
|
||||
padding: 0.25em 0.5em;
|
||||
background: #ccc;
|
||||
color: #333;
|
||||
font-size: 175%;
|
||||
border: 1px solid #bbb;
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
}
|
||||
|
||||
.documentation-section-title {
|
||||
position: relative;
|
||||
}
|
||||
.documentation-section-title .section-click-top {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 12px;
|
||||
font-size: 10px;
|
||||
color: #9b9877;
|
||||
visibility: hidden;
|
||||
padding-right: 0.5px;
|
||||
}
|
||||
|
||||
.documentation-section-title:hover .section-click-top {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
#documentation h3.section-header {
|
||||
margin-top: 1em;
|
||||
padding: 0.25em 0.5em;
|
||||
background-color: #dedede;
|
||||
color: #333;
|
||||
font-size: 150%;
|
||||
border: 1px solid #bbb;
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
}
|
||||
|
||||
#constants-list > dl,
|
||||
#attributes-list > dl {
|
||||
margin: 1em 0 2em;
|
||||
border: 0;
|
||||
}
|
||||
#constants-list > dl dt,
|
||||
#attributes-list > dl dt {
|
||||
padding-left: 0;
|
||||
font-weight: bold;
|
||||
font-family: Monaco, "Andale Mono";
|
||||
background: inherit;
|
||||
}
|
||||
#constants-list > dl dt a,
|
||||
#attributes-list > dl dt a {
|
||||
color: inherit;
|
||||
}
|
||||
#constants-list > dl dd,
|
||||
#attributes-list > dl dd {
|
||||
margin: 0 0 1em 0;
|
||||
padding: 0;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.documentation-section h2 {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.documentation-section h2 a {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 10px;
|
||||
font-size: 12px;
|
||||
color: #9b9877;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.documentation-section h2:hover a {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
/* @group Method Details */
|
||||
|
||||
#documentation .method-source-code {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#documentation .method-detail {
|
||||
margin: 0.5em 0;
|
||||
padding: 0.5em 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
#documentation .method-detail:hover {
|
||||
background-color: #f1edba;
|
||||
}
|
||||
#documentation .method-heading {
|
||||
position: relative;
|
||||
padding: 2px 4px 0 20px;
|
||||
font-size: 125%;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
background: url(images/brick.png) no-repeat left bottom;
|
||||
}
|
||||
#documentation .method-heading :link,
|
||||
#documentation .method-heading :visited {
|
||||
color: inherit;
|
||||
}
|
||||
#documentation .method-click-advice {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 5px;
|
||||
font-size: 10px;
|
||||
color: #9b9877;
|
||||
visibility: hidden;
|
||||
padding-right: 20px;
|
||||
line-height: 20px;
|
||||
background: url(images/zoom.png) no-repeat right top;
|
||||
}
|
||||
#documentation .method-heading:hover .method-click-advice {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
#documentation .method-alias .method-heading {
|
||||
color: #666;
|
||||
background: url(images/brick_link.png) no-repeat left bottom;
|
||||
}
|
||||
|
||||
#documentation .method-description,
|
||||
#documentation .aliases {
|
||||
margin: 0 20px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
#documentation .method-description p,
|
||||
#documentation .aliases p {
|
||||
line-height: 1.2em;
|
||||
}
|
||||
|
||||
#documentation .aliases {
|
||||
padding-top: 4px;
|
||||
font-style: italic;
|
||||
cursor: default;
|
||||
}
|
||||
#documentation .method-description p {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
#documentation .method-description ul {
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
pre {
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
|
||||
#documentation .attribute-method-heading {
|
||||
background: url(images/tag_green.png) no-repeat left bottom;
|
||||
}
|
||||
#documentation #attribute-method-details .method-detail:hover {
|
||||
background-color: transparent;
|
||||
cursor: default;
|
||||
}
|
||||
#documentation .attribute-access-type {
|
||||
font-size: 60%;
|
||||
text-transform: uppercase;
|
||||
vertical-align: super;
|
||||
padding: 0 2px;
|
||||
}
|
||||
/* @end */
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Source Code */
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
background: #262626;
|
||||
color: white;
|
||||
border: 1px dashed #999;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.description pre {
|
||||
margin: 0 0.4em;
|
||||
}
|
||||
|
||||
.ruby-constant { color: #7fffd4; background: transparent; }
|
||||
.ruby-keyword { color: #00ffff; background: transparent; }
|
||||
.ruby-ivar { color: #eedd82; background: transparent; }
|
||||
.ruby-operator { color: #00ffee; background: transparent; }
|
||||
.ruby-identifier { color: #ffdead; background: transparent; }
|
||||
.ruby-node { color: #ffa07a; background: transparent; }
|
||||
.ruby-comment { color: #dc0000; font-weight: bold; background: transparent; }
|
||||
.ruby-regexp { color: #ffa07a; background: transparent; }
|
||||
.ruby-value { color: #7fffd4; background: transparent; }
|
||||
|
||||
/* @end */
|
||||
|
||||
|
||||
/* @group search results */
|
||||
#search-results h1 {
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
#search-results .current {
|
||||
background: #ccc;
|
||||
border-bottom: 1px solid transparent;
|
||||
}
|
||||
|
||||
#search-results li {
|
||||
list-style: none;
|
||||
border-bottom: 1px solid #aaa;
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
#search-results li:last-child {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#search-results li p {
|
||||
padding: 0;
|
||||
margin: 0.5em;
|
||||
}
|
||||
|
||||
#search-results .search-namespace {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#search-results li em {
|
||||
background: yellow;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
#search-results pre {
|
||||
margin: 0.5em;
|
||||
}
|
||||
|
||||
/* @end */
|
||||
|
||||
342
app/doc/table_of_contents.html
Normal file
@@ -0,0 +1,342 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
<title>Table of Contents - RDoc Documentation</title>
|
||||
|
||||
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript">
|
||||
var rdoc_rel_prefix = "./";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
||||
|
||||
|
||||
<body class="indexpage">
|
||||
<h1>Table of Contents - RDoc Documentation</h1>
|
||||
|
||||
|
||||
<h2 id="classes">Classes/Modules</h2>
|
||||
<ul>
|
||||
<li class="class">
|
||||
<a href="Ability.html">Ability</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="ApplicationController.html">ApplicationController</a>
|
||||
</li>
|
||||
<li class="module">
|
||||
<a href="ApplicationHelper.html">ApplicationHelper</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="Beispiel.html">Beispiel</a>
|
||||
|
||||
<img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
|
||||
<ul class="initially-hidden">
|
||||
<li><a href="Beispiel.html#label-Schema+Information">Schema Information</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="BeispieleController.html">BeispieleController</a>
|
||||
</li>
|
||||
<li class="module">
|
||||
<a href="BeispieleHelper.html">BeispieleHelper</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="ConfigController.html">ConfigController</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="Confirmmailer.html">Confirmmailer</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="HomeController.html">HomeController</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="Lva.html">Lva</a>
|
||||
|
||||
<img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
|
||||
<ul class="initially-hidden">
|
||||
<li><a href="Lva.html#label-Schema+Information">Schema Information</a>
|
||||
<li><a href="Lva.html#label-Information">Information</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="LvasController.html">LvasController</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="Modul.html">Modul</a>
|
||||
|
||||
<img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
|
||||
<ul class="initially-hidden">
|
||||
<li><a href="Modul.html#label-Schema+Information">Schema Information</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="Modulgruppe.html">Modulgruppe</a>
|
||||
|
||||
<img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
|
||||
<ul class="initially-hidden">
|
||||
<li><a href="Modulgruppe.html#label-Schema+Information">Schema Information</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="ModulgruppenController.html">ModulgruppenController</a>
|
||||
</li>
|
||||
<li class="module">
|
||||
<a href="ModulgruppenHelper.html">ModulgruppenHelper</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="ModulsController.html">ModulsController</a>
|
||||
</li>
|
||||
<li class="module">
|
||||
<a href="ModulsHelper.html">ModulsHelper</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="Neuigkeit.html">Neuigkeit</a>
|
||||
|
||||
<img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
|
||||
<ul class="initially-hidden">
|
||||
<li><a href="Neuigkeit.html#label-Schema+Information">Schema Information</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="NeuigkeitenController.html">NeuigkeitenController</a>
|
||||
</li>
|
||||
<li class="module">
|
||||
<a href="PagesHelper.html">PagesHelper</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="Role.html">Role</a>
|
||||
|
||||
<img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
|
||||
<ul class="initially-hidden">
|
||||
<li><a href="Role.html#label-Schema+Information">Schema Information</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="Rubrik.html">Rubrik</a>
|
||||
|
||||
<img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
|
||||
<ul class="initially-hidden">
|
||||
<li><a href="Rubrik.html#label-Schema+Information">Schema Information</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="RubrikenController.html">RubrikenController</a>
|
||||
</li>
|
||||
<li class="module">
|
||||
<a href="RubrikenHelper.html">RubrikenHelper</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="Semester.html">Semester</a>
|
||||
|
||||
<img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
|
||||
<ul class="initially-hidden">
|
||||
<li><a href="Semester.html#label-Schema+Information">Schema Information</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="SemestersController.html">SemestersController</a>
|
||||
</li>
|
||||
<li class="module">
|
||||
<a href="SemestersHelper.html">SemestersHelper</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="StudienController.html">StudienController</a>
|
||||
</li>
|
||||
<li class="module">
|
||||
<a href="StudienHelper.html">StudienHelper</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="Studium.html">Studium</a>
|
||||
|
||||
<img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
|
||||
<ul class="initially-hidden">
|
||||
<li><a href="Studium.html#label-Schema+Information">Schema Information</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="module">
|
||||
<a href="StudmodsHelper.html">StudmodsHelper</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="TinymceTextInput.html">TinymceTextInput</a>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="User.html">User</a>
|
||||
|
||||
<img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
|
||||
<ul class="initially-hidden">
|
||||
<li><a href="User.html#label-Schema+Information">Schema Information</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="class">
|
||||
<a href="UsersController.html">UsersController</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<h2 id="methods">Methods</h2>
|
||||
<ul>
|
||||
|
||||
<li class="method"><a href="Ability.html#method-c-new">::new — Ability</a>
|
||||
|
||||
<li class="method"><a href="RubrikenController.html#method-i-addmoderator">#addmoderator — RubrikenController</a>
|
||||
|
||||
<li class="method"><a href="RubrikenController.html#method-i-alle_verwalten">#alle_verwalten — RubrikenController</a>
|
||||
|
||||
<li class="method"><a href="PagesHelper.html#method-i-breadcrumbs">#breadcrumbs — PagesHelper</a>
|
||||
|
||||
<li class="method"><a href="LvasController.html#method-i-create">#create — LvasController</a>
|
||||
|
||||
<li class="method"><a href="ModulsController.html#method-i-create">#create — ModulsController</a>
|
||||
|
||||
<li class="method"><a href="StudienController.html#method-i-create">#create — StudienController</a>
|
||||
|
||||
<li class="method"><a href="SemestersController.html#method-i-create">#create — SemestersController</a>
|
||||
|
||||
<li class="method"><a href="BeispieleController.html#method-i-create">#create — BeispieleController</a>
|
||||
|
||||
<li class="method"><a href="RubrikenController.html#method-i-create">#create — RubrikenController</a>
|
||||
|
||||
<li class="method"><a href="ModulgruppenController.html#method-i-create">#create — ModulgruppenController</a>
|
||||
|
||||
<li class="method"><a href="NeuigkeitenController.html#method-i-create">#create — NeuigkeitenController</a>
|
||||
|
||||
<li class="method"><a href="ApplicationHelper.html#method-i-current_url">#current_url — ApplicationHelper</a>
|
||||
|
||||
<li class="method"><a href="ApplicationController.html#method-i-default_url_options">#default_url_options — ApplicationController</a>
|
||||
|
||||
<li class="method"><a href="RubrikenController.html#method-i-destroy">#destroy — RubrikenController</a>
|
||||
|
||||
<li class="method"><a href="ModulgruppenController.html#method-i-destroy">#destroy — ModulgruppenController</a>
|
||||
|
||||
<li class="method"><a href="LvasController.html#method-i-destroy">#destroy — LvasController</a>
|
||||
|
||||
<li class="method"><a href="StudienController.html#method-i-destroy">#destroy — StudienController</a>
|
||||
|
||||
<li class="method"><a href="SemestersController.html#method-i-destroy">#destroy — SemestersController</a>
|
||||
|
||||
<li class="method"><a href="ModulsController.html#method-i-destroy">#destroy — ModulsController</a>
|
||||
|
||||
<li class="method"><a href="BeispieleController.html#method-i-destroy">#destroy — BeispieleController</a>
|
||||
|
||||
<li class="method"><a href="NeuigkeitenController.html#method-i-destroy">#destroy — NeuigkeitenController</a>
|
||||
|
||||
<li class="method"><a href="HomeController.html#method-i-dev">#dev — HomeController</a>
|
||||
|
||||
<li class="method"><a href="ModulgruppenController.html#method-i-edit">#edit — ModulgruppenController</a>
|
||||
|
||||
<li class="method"><a href="BeispieleController.html#method-i-edit">#edit — BeispieleController</a>
|
||||
|
||||
<li class="method"><a href="LvasController.html#method-i-edit">#edit — LvasController</a>
|
||||
|
||||
<li class="method"><a href="SemestersController.html#method-i-edit">#edit — SemestersController</a>
|
||||
|
||||
<li class="method"><a href="NeuigkeitenController.html#method-i-edit">#edit — NeuigkeitenController</a>
|
||||
|
||||
<li class="method"><a href="RubrikenController.html#method-i-edit">#edit — RubrikenController</a>
|
||||
|
||||
<li class="method"><a href="ModulsController.html#method-i-edit">#edit — ModulsController</a>
|
||||
|
||||
<li class="method"><a href="StudienController.html#method-i-edit">#edit — StudienController</a>
|
||||
|
||||
<li class="method"><a href="ConfigController.html#method-i-get_git_update">#get_git_update — ConfigController</a>
|
||||
|
||||
<li class="method"><a href="StudienController.html#method-i-index">#index — StudienController</a>
|
||||
|
||||
<li class="method"><a href="BeispieleController.html#method-i-index">#index — BeispieleController</a>
|
||||
|
||||
<li class="method"><a href="LvasController.html#method-i-index">#index — LvasController</a>
|
||||
|
||||
<li class="method"><a href="ModulsController.html#method-i-index">#index — ModulsController</a>
|
||||
|
||||
<li class="method"><a href="SemestersController.html#method-i-index">#index — SemestersController</a>
|
||||
|
||||
<li class="method"><a href="ModulgruppenController.html#method-i-index">#index — ModulgruppenController</a>
|
||||
|
||||
<li class="method"><a href="UsersController.html#method-i-index">#index — UsersController</a>
|
||||
|
||||
<li class="method"><a href="NeuigkeitenController.html#method-i-index">#index — NeuigkeitenController</a>
|
||||
|
||||
<li class="method"><a href="RubrikenController.html#method-i-index">#index — RubrikenController</a>
|
||||
|
||||
<li class="method"><a href="HomeController.html#method-i-index">#index — HomeController</a>
|
||||
|
||||
<li class="method"><a href="ConfigController.html#method-i-index">#index — ConfigController</a>
|
||||
|
||||
<li class="method"><a href="TinymceTextInput.html#method-i-input_html_options">#input_html_options — TinymceTextInput</a>
|
||||
|
||||
<li class="method"><a href="Rubrik.html#method-i-moderator">#moderator — Rubrik</a>
|
||||
|
||||
<li class="method"><a href="ModulgruppenController.html#method-i-new">#new — ModulgruppenController</a>
|
||||
|
||||
<li class="method"><a href="BeispieleController.html#method-i-new">#new — BeispieleController</a>
|
||||
|
||||
<li class="method"><a href="NeuigkeitenController.html#method-i-new">#new — NeuigkeitenController</a>
|
||||
|
||||
<li class="method"><a href="StudienController.html#method-i-new">#new — StudienController</a>
|
||||
|
||||
<li class="method"><a href="ModulsController.html#method-i-new">#new — ModulsController</a>
|
||||
|
||||
<li class="method"><a href="SemestersController.html#method-i-new">#new — SemestersController</a>
|
||||
|
||||
<li class="method"><a href="LvasController.html#method-i-new">#new — LvasController</a>
|
||||
|
||||
<li class="method"><a href="RubrikenController.html#method-i-new">#new — RubrikenController</a>
|
||||
|
||||
<li class="method"><a href="ApplicationController.html#method-i-set_i18n_locale_from_params">#set_i18n_locale_from_params — ApplicationController</a>
|
||||
|
||||
<li class="method"><a href="BeispieleController.html#method-i-show">#show — BeispieleController</a>
|
||||
|
||||
<li class="method"><a href="ModulsController.html#method-i-show">#show — ModulsController</a>
|
||||
|
||||
<li class="method"><a href="LvasController.html#method-i-show">#show — LvasController</a>
|
||||
|
||||
<li class="method"><a href="StudienController.html#method-i-show">#show — StudienController</a>
|
||||
|
||||
<li class="method"><a href="RubrikenController.html#method-i-show">#show — RubrikenController</a>
|
||||
|
||||
<li class="method"><a href="SemestersController.html#method-i-show">#show — SemestersController</a>
|
||||
|
||||
<li class="method"><a href="NeuigkeitenController.html#method-i-show">#show — NeuigkeitenController</a>
|
||||
|
||||
<li class="method"><a href="ModulgruppenController.html#method-i-show">#show — ModulgruppenController</a>
|
||||
|
||||
<li class="method"><a href="ApplicationHelper.html#method-i-switch_locale_url">#switch_locale_url — ApplicationHelper</a>
|
||||
|
||||
<li class="method"><a href="ApplicationHelper.html#method-i-toolbar_html">#toolbar_html — ApplicationHelper</a>
|
||||
|
||||
<li class="method"><a href="NeuigkeitenController.html#method-i-update">#update — NeuigkeitenController</a>
|
||||
|
||||
<li class="method"><a href="RubrikenController.html#method-i-update">#update — RubrikenController</a>
|
||||
|
||||
<li class="method"><a href="StudienController.html#method-i-update">#update — StudienController</a>
|
||||
|
||||
<li class="method"><a href="SemestersController.html#method-i-update">#update — SemestersController</a>
|
||||
|
||||
<li class="method"><a href="ModulsController.html#method-i-update">#update — ModulsController</a>
|
||||
|
||||
<li class="method"><a href="LvasController.html#method-i-update">#update — LvasController</a>
|
||||
|
||||
<li class="method"><a href="ModulgruppenController.html#method-i-update">#update — ModulgruppenController</a>
|
||||
|
||||
<li class="method"><a href="BeispieleController.html#method-i-update">#update — BeispieleController</a>
|
||||
|
||||
<li class="method"><a href="RubrikenController.html#method-i-verwalten">#verwalten — RubrikenController</a>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<footer id="validator-badges">
|
||||
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
||||
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.1.
|
||||
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
||||
</footer>
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: beispiele
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# name :string(255)
|
||||
# desc :text
|
||||
# lva_id :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# file_file_name :string(255)
|
||||
# file_content_type :string(255)
|
||||
# file_file_size :integer
|
||||
# file_updated_at :datetime
|
||||
#
|
||||
|
||||
class Beispiel < ActiveRecord::Base
|
||||
has_paper_trail
|
||||
attr_accessible :desc, :name, :file, :lva_id
|
||||
|
||||
@@ -1,4 +1,19 @@
|
||||
##
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: lvas
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# name :string(255)
|
||||
# desc :text
|
||||
# ects :decimal(, )
|
||||
# lvanr :string(255)
|
||||
# stunden :decimal(, )
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# modul_id :integer
|
||||
# semester_id :integer
|
||||
#
|
||||
# == Information
|
||||
# Author:: Andreas Stephanides
|
||||
# License:: GPL
|
||||
# Dieses Model repräsentiert eine LVA. Die notwendigen Informationen können mit TISS (dem Online System der TU Wien) synchronisiert werden
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: moduls
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# name :string(255)
|
||||
# desc :text
|
||||
# depend :text
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
class Modul < ActiveRecord::Base
|
||||
attr_accessible :desc,:name, :depend, :studium_id, :modulgruppe_ids
|
||||
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: modulgruppen
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# typ :string(255)
|
||||
# phase :integer
|
||||
# name :string(255)
|
||||
# desc :text
|
||||
# studium_id :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
class Modulgruppe < ActiveRecord::Base
|
||||
attr_accessible :name, :phase, :typ,:desc, :studium_id
|
||||
belongs_to :studium, :foreign_key => "studium_id"
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: neuigkeiten
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# title :string(255)
|
||||
# text :text
|
||||
# datum :datetime
|
||||
# rubrik_id :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
class Neuigkeit < ActiveRecord::Base
|
||||
attr_accessible :datum, :text, :title, :rubrik_id
|
||||
belongs_to :author, :class_name =>'User'
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: roles
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# name :string(255)
|
||||
# resource_id :integer
|
||||
# resource_type :string(255)
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
class Role < ActiveRecord::Base
|
||||
has_and_belongs_to_many :users, :join_table => :users_roles
|
||||
belongs_to :resource, :polymorphic => true
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: rubriken
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# name :string(255)
|
||||
# desc :text
|
||||
# prio :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
class Rubrik < ActiveRecord::Base
|
||||
attr_accessible :desc, :name, :prio
|
||||
has_many :neuigkeiten, :class_name => "Neuigkeit"
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: semesters
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# name :string(255)
|
||||
# nummer :integer
|
||||
# studium_id :integer
|
||||
# ssws :string(255)
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
class Semester < ActiveRecord::Base
|
||||
has_and_belongs_to_many :lvas
|
||||
attr_accessible :name, :nummer, :ss, :ws
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: studien
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# zahl :string(255)
|
||||
# name :string(255)
|
||||
# shortdesc :text
|
||||
# desc :text
|
||||
# typ :string(255)
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
class Studium < ActiveRecord::Base
|
||||
attr_accessible :desc, :name, :typ, :zahl
|
||||
has_many :modulgruppen, inverse_of: :studium, :class_name => "Modulgruppe"
|
||||
|
||||
@@ -1,3 +1,29 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: users
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# email :string(255) default(""), not null
|
||||
# encrypted_password :string(255) default(""), not null
|
||||
# reset_password_token :string(255)
|
||||
# reset_password_sent_at :datetime
|
||||
# remember_created_at :datetime
|
||||
# sign_in_count :integer default(0)
|
||||
# current_sign_in_at :datetime
|
||||
# last_sign_in_at :datetime
|
||||
# current_sign_in_ip :string(255)
|
||||
# last_sign_in_ip :string(255)
|
||||
# confirmation_token :string(255)
|
||||
# confirmed_at :datetime
|
||||
# confirmation_sent_at :datetime
|
||||
# unconfirmed_email :string(255)
|
||||
# failed_attempts :integer default(0)
|
||||
# unlock_token :string(255)
|
||||
# locked_at :datetime
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
class User < ActiveRecord::Base
|
||||
rolify
|
||||
# Include default devise modules. Others available are:
|
||||
|
||||