Skip to content

Instantly share code, notes, and snippets.

@dhoelzer
Created January 10, 2015 14:10
Show Gist options
  • Save dhoelzer/6801cf4fcc534090ab3c to your computer and use it in GitHub Desktop.
Save dhoelzer/6801cf4fcc534090ab3c to your computer and use it in GitHub Desktop.
def index
respond_to do |format|
format.html
format.js {render layout: false}
end
end
@dhoelzer
Copy link
Author

I, [2015-01-10T14:04:56.393656 #16814] INFO -- : Completed 200 OK in 10ms (Views: 2.6ms | ActiveRecord: 0.0ms)
I, [2015-01-10T14:05:00.783275 #16814] INFO -- : Started GET "/events.js" for 192.168.2.8 at 2015-01-10 14:05:00 +0000
I, [2015-01-10T14:05:00.784744 #16814] INFO -- : Processing by EventsController#index as JS
I, [2015-01-10T14:05:00.786087 #16814] INFO -- : Rendered events/index.html.erb (0.5ms)
I, [2015-01-10T14:05:00.786266 #16814] INFO -- : Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment