Skip to content

Instantly share code, notes, and snippets.

@seanhandley
Created August 12, 2011 08:05
Show Gist options
  • Save seanhandley/1141672 to your computer and use it in GitHub Desktop.
Save seanhandley/1141672 to your computer and use it in GitHub Desktop.
def random_tip
@tip = Tip.random_tip
respond_to do |format|
format.js { render :json => @tip, :callback => params[:callback] }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment