Skip to content

Instantly share code, notes, and snippets.

@dannyvassallo
Created March 25, 2015 15:10
Show Gist options
  • Save dannyvassallo/04b04a400edcd40745a2 to your computer and use it in GitHub Desktop.
Save dannyvassallo/04b04a400edcd40745a2 to your computer and use it in GitHub Desktop.
Put Rails App in iFrame on Fangate
In Rails 4 App
application.rb:
config.action_dispatch.default_headers.merge!({'X-Frame-Options' => 'ALLOWALL'})
In Fangate:
<style>
a#footer-branding.paid{
display:none !important;
}
#page{
width: 100% !important;
padding: 0 !important;
height: 4300px !important;
}
#page-content{
width: 100% !important;
}
iframe{
margin: -5px auto 0 auto;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 4300px !important;
}
</style>
<iframe frameBorder="0" src="https://drsday.herokuapp.com/"></iframe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment