Skip to content

Commit

Permalink
Don't think about the aspect ratio for now.
Browse files Browse the repository at this point in the history
Screens#edit was broken if a screen didn't have a height or width, which newly created screens might not have.
  • Loading branch information
bamnet committed Mar 4, 2012
1 parent 444a9e9 commit 4fd39dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/screens_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def new
# GET /screens/1/edit
def edit
@screen = Screen.find(params[:id])
screen_aspect_ratio = @screen.width / @screen.height

@templates = Template.all
#@templates_bestfit = Template.find(:all, :conditions => "width / height = #{screen_aspect_ratio}")
#@templates_other = Template.find(:all, :conditions => "width / height != #{screen.aspect_ratio}")
Expand Down

0 comments on commit 4fd39dc

Please sign in to comment.