Sha256: 7c01e1c36b3d8f0071ceaeb05d0934a3ddecd4dc9e139f0436e1bca1ed66f428
Contents?: true
Size: 1.73 KB
Versions: 4
Compression:
Stored size: 1.73 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>show (TaskFilesController)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File app/controllers/task_files_controller.rb, line 2</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show</span> <span class="ruby-ivar">@task_file</span> = <span class="ruby-constant">TaskFile</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>]) <span class="ruby-identifier">send_data</span>(<span class="ruby-ivar">@task_file</span>.<span class="ruby-identifier">content_data</span>, <span class="ruby-identifier">:disposition</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@task_file</span>.<span class="ruby-identifier">image?</span> <span class="ruby-value">? </span><span class="ruby-value str">'inline'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">'attachment'</span>, <span class="ruby-identifier">:type</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@task_file</span>.<span class="ruby-identifier">content_type</span>, <span class="ruby-identifier">:filename</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@task_file</span>.<span class="ruby-identifier">name</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
4 entries across 2 versions & 1 rubygems