-
-
Save 123ish/677997c9bd3063eb4ad8b3aba0677021 to your computer and use it in GitHub Desktop.
Create AMP in Rails powered website - samples_controller.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/controllers/samples_controller.rb | |
Class SamplesController | |
# other existing methods | |
def show | |
# your existing codes | |
respond_to do |format| | |
format.html | |
format.amp { render 'amp/samples/show.amp', layout: 'amp/layouts/application' } | |
end | |
end | |
# other existing methods | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment