Skip to content

Instantly share code, notes, and snippets.

= form_for [:admin, navigation_link] do |f|
.row.mt20
.col-sm-12
.panel.panel-default
.panel-heading
%h4.panel-title= title
.panel-body.form-horizontal
.form-group
= f.label :name, class: "col-lg-2 col-md-2 col-sm-12 control-label"
.col-lg-10.col-md-10
Completed 500 Internal Server Error in 176ms (ActiveRecord: 16.6ms)
ActionView::Template::Error (undefined method `area_1' for #<Page::ActiveRecord_Relation:0x007ff61fcbd4d8>):
9: .row
10: .col-md-12.text-center
11: = @main_area.editable_area.html_safe
12: = @page.area_1.html_safe
13: %section.section-pt.section-no-pa
= f.select :path, Page.all.collect {|p|[p.url_link_name, p.slug ] } << ["blogs", "/blogs"] << ["none", "#"] << ["home", "/"]
//
// ViewController.swift
// fun facts
//
// Created by Gustavo Pares on 1/21/17.
// Copyright © 2017 Gustavo Pares. All rights reserved.
//
import UIKit
//
// FactProvider.swift
// fun facts
//
//
import Foundation
struct FactProvider {
let facts: [String] = ["this is awesome", "woot", "woot woot", "wooting is rough"]
//
// MyCollectionViewController.swift
// CollectionDemo
//
// Created by Gustavo Pares on 1/29/17.
// Copyright © 2017 Gustavo Pares. All rights reserved.
//
import UIKit
<div class='container'>
<div class='form ptb'>
<div class='row'>
<div class='col-12 col-sm-8 offset-sm-2'>
<p class='contact-area'></p>
<p class='no-pb'>
submit your request
</p>
<h1>
We will contact you soon
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-4117 -1815 120 181.081"><defs><style>.a,.b{fill:#fff;}.a{font-size:30px;font-family:RiftSoft-Regular, Rift Soft;}</style></defs><g transform="translate(-4301 -4141)"><text class="a" transform="translate(243.665 2500.081)"><tspan x="-58.92" y="0">electricity</tspan></text><g transform="translate(184 2326)"><path class="b" d="M60,120a60,60,0,1,1,60-60A60.129,60.129,0,0,1,60,120ZM60,4.858A55.142,55.142,0,1,0,115.142,60,55.257,55.257,0,0,0,60,4.858Z"/><g transform="translate(19.312 34.494)"><path class="b" d="M65.333,31.8c.972,2.308,1.822,4.494,2.794,6.8,1.093-.243,2.065-.607,3.522-.972,1.7,4.615,3.522,9.109,4.858,13.846.729,2.429-1.579,4.615-5.83,6.8.729,2.065,1.579,4.13,2.308,6.316a18.177,18.177,0,0,1,.729,11.9c-1.336,4.494-4.737,7.045-8.623,7.045a11.05,11.05,0,0,1-5.587-1.7c-3.644-2.186-5.709-5.587-7.166-9.474-2.672-7.287-5.344-14.7-8.259-21.862a35.443,35.443,0,0,0-4.858-7.895,14.678,14.678,0,0,0-11.781-5.587,60.74,60.74,0,0,1-7.409-.729c.364-1.093.85-2.308,1.2
desc "Deploys the current version to the server."
task :deploy do
deploy do
# Put things that will set up an empty directory into a fully set-up
# instance of your project.
invoke :'git:clone'
invoke :'bundle:install'
invoke :'deploy:cleanup'
invoke :restart
end
There is a plugin called mina-nginx which is overkill all I am trying to do is restart my nginx after I deploy my sinatra app. I have this code
```ruby
require 'mina/rails'
require 'mina/git'
# require 'mina/rbenv' # for rbenv support. (https://rbenv.org)
require 'mina/rvm' # for rvm support. (https://rvm.io)
set :domain, 'dot'
set :deploy_to, 'foo'