Skip to content

Instantly share code, notes, and snippets.

@ivanacostarubio
Created December 9, 2009 21:20
Show Gist options
  • Save ivanacostarubio/252830 to your computer and use it in GitHub Desktop.
Save ivanacostarubio/252830 to your computer and use it in GitHub Desktop.
before_filter :should_have_job_hunter :except => [ :index ]
# call to action al aplicar para que llenen el trabajo perfecto
def should_have_job_hunter
@user = User.find_by_id(current_user.id, :include => :job_hunter)
if @user.job_hunter==nil
redirect_to "/job_requests/new"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment