Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Steven Feature Request, .jpg extension on images, so they can be drag…

…ged to campfire
  • Loading branch information...
commit 730a400a27bf63c9ad1bdf75832426ce3203f9c4 1 parent 2514295
@stefanpenner stefanpenner authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  fyn.rb
  2. +1 −1  views/noun.rhtml
View
2  fyn.rb
@@ -35,7 +35,7 @@ def noun(noun = params[:noun])
redirect '/' + Actions::Noun.random
end
- get '/images/:noun' do
+ get '/images/:noun.:format?' do
send_file noun.image.file, type: :jpg, disposition: :inline
end
View
2  views/noun.rhtml
@@ -77,7 +77,7 @@ img{
<span style="font-size:140%">⟳</span>Random
</a>
<div id="image-container">
- <img src='/images/<%= ERB::Util::h(params[:noun]) %>' />
+ <img src='/images/<%= ERB::Util::h(params[:noun]) %>.jpg' />
</div>
<br/>
<form>

0 comments on commit 730a400

Please sign in to comment.
Something went wrong with that request. Please try again.