Permalink
Browse files

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

…ged to campfire
  • Loading branch information...
1 parent 2514295 commit 730a400a27bf63c9ad1bdf75832426ce3203f9c4 @stefanpenner stefanpenner committed Mar 2, 2012
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
@@ -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.