Skip to content

Instantly share code, notes, and snippets.

@scottmagdalein
Created July 10, 2012 13:36
Show Gist options
  • Save scottmagdalein/3083290 to your computer and use it in GitHub Desktop.
Save scottmagdalein/3083290 to your computer and use it in GitHub Desktop.
setting position for application url
private
def set_position
if @current_company
@position = @current_company.positions.find(params[:position_id])
else
@position = Position.find(params[:position_id])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment