Skip to content

Instantly share code, notes, and snippets.

@sllvn
Created Mar 21, 2012
Embed
What would you like to do?
class ZombiesController < ApplicationController
before_filter :find_zombie
def show
render :action => :show
end
def find_zombie
@zombie = Zombie.find params[:id]
if @zombie.tweets.size == 0
redirect_to zombies_path
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment