Files
9minutes/doc/app/UsersHelper.html
T
Tobias Klika 2cbb942282 doc files;
2011-06-13 14:56:41 +02:00

242 lines
7.0 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Module: UsersHelper</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./app/helpers/users_helper_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="app/helpers/users_helper.rb">app/helpers/users_helper.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<!-- Namespace Contents -->
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-i-validate_avatar_url">#validate_avatar_url</a></li>
</ul>
</div>
<!-- Included Modules -->
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./LastFM.html">LastFM</a></li>
<li><a href="./LastFM/Album.html">LastFM::Album</a></li>
<li><a href="./LastFM/Artist.html">LastFM::Artist</a></li>
<li><a href="./LastFM/Chart.html">LastFM::Chart</a></li>
<li><a href="./LastFM/Request.html">LastFM::Request</a></li>
<li><a href="./LastFM/Track.html">LastFM::Track</a></li>
<li><a href="./LastFM/Validator.html">LastFM::Validator</a></li>
<li><a href="./DeviseAuth.html">DeviseAuth</a></li>
<li><a href="./DeviseAuth/RegistrationsController.html">DeviseAuth::RegistrationsController</a></li>
<li><a href="./DeviseAuth/SessionsController.html">DeviseAuth::SessionsController</a></li>
<li><a href="./Users.html">Users</a></li>
<li><a href="./Users/OmniauthCallbacksController.html">Users::OmniauthCallbacksController</a></li>
<li><a href="./ApplicationController.html">ApplicationController</a></li>
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
<li><a href="./Artist.html">Artist</a></li>
<li><a href="./ArtistsController.html">ArtistsController</a></li>
<li><a href="./ChartsController.html">ChartsController</a></li>
<li><a href="./HomeController.html">HomeController</a></li>
<li><a href="./Playlist.html">Playlist</a></li>
<li><a href="./PlaylistsTracks.html">PlaylistsTracks</a></li>
<li><a href="./RedisQueryable.html">RedisQueryable</a></li>
<li><a href="./SearchController.html">SearchController</a></li>
<li><a href="./Track.html">Track</a></li>
<li><a href="./TracksController.html">TracksController</a></li>
<li><a href="./User.html">User</a></li>
<li><a href="./UsersController.html">UsersController</a></li>
<li><a href="./UsersHelper.html">UsersHelper</a></li>
<li><a href="./YoutubeVideoRating.html">YoutubeVideoRating</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">UsersHelper</h1>
<div id="description">
</div>
<!-- Constants -->
<!-- Attributes -->
<!-- Methods -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="validate-avatar-url-method" class="method-detail ">
<a name="method-i-validate_avatar_url"></a>
<div class="method-heading">
<span class="method-name">validate_avatar_url</span><span
class="method-args">(url)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code"
id="validate-avatar-url-source">
<pre>
<span class="ruby-comment cmt"># File app/helpers/users_helper.rb, line 3</span>
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate_avatar_url</span> <span class="ruby-identifier">url</span>
4: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">url</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">present?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">exists?</span> <span class="ruby-identifier">url</span>
5: <span class="ruby-value str">&quot;examples/user-big.jpg&quot;</span>
6: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
</div>
</div>
<div id="rdoc-debugging-section-dump" class="debugging-section">
<p>Disabled; run with --debug to generate this.</p>
</div>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 1.1.6</small>.</p>
</div>
</body>
</html>