Skip to content

Instantly share code, notes, and snippets.

@carlesso
Created July 7, 2015 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlesso/24c1eb31701f9bd2178e to your computer and use it in GitHub Desktop.
Save carlesso/24c1eb31701f9bd2178e to your computer and use it in GitHub Desktop.
class WelcomeController < ApplicationController
def index
@xhr = request.xhr?
render :index, change: 'variable'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment