This file contains 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
module ConcursoCulturalVideoVagas | |
module VideosHelper | |
def botao_add_to_page | |
url_da_app = "#{FACEBOOK_CONFIG['facebook_url']}" | |
app_id = FACEBOOK_CONFIG['app_id'] | |
"<div style='margin: 15px'> | |
<h3>App Concurso Cultural</h3> | |
<br/> | |
<br/> |
This file contains 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
<section class='dashboard'> | |
<%= raw botao_add_to_page %> | |
</section> | |
<script> | |
$(function () { | |
$('#app_request').click(function () { | |
FB.ui({ | |
method: 'apprequests', | |
message: 'You should learn more about this awesome game.', |
This file contains 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
//nomustache | |
for(x in payload.shipment.items){ | |
payload.shipment.items[x].line_number = x; | |
} | |
payload.shipment.status= "ready"; | |
payload.shipment |