Skip to content

Instantly share code, notes, and snippets.

@lucasmazza
Created June 9, 2014 02:16
Show Gist options
  • Select an option

  • Save lucasmazza/803d591b6a50b4dc919d to your computer and use it in GitHub Desktop.

Select an option

Save lucasmazza/803d591b6a50b4dc919d to your computer and use it in GitHub Desktop.
class ProjectsController < ApplicationController
def show
respond_to do |format|
format.html do |html|
html.tablet # renders app/views/projects/show.html+tablet.erb
html.phone { extra_setup; render ... }
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment