Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh root@123.123.123.123
Add ssh fingerprint and enter password provided in email
# file uploads | |
gem 'paperclip', '~> 3.0' | |
gem 'rack-raw-upload' |
.edit-map | |
.attach-group | |
.input | |
%label Местонахождения | |
= p.text_field :location, input_html: { value: geopoint.address } , placeholder: 'Китай', class: 'map_text_field' | |
%i.submit_address.hide.ico-enter{title: 'Отобразить на карте'} | |
.input.checkbox | |
= p.check_box :show_location | |
= p.label :show_location, 'показывать в профиле' |
# config | |
module AppName | |
class Application < Rails::Application | |
config.autoload_paths += %W(#{Rails.root}/app/controllers/concerns #{Rails.root}/app/models/concerns) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
x.select('moderator, COUNT(*) count').group('moderator').inject({}){|h, o| h[o.moderator=="t"] = o; h } |
.avatar-picker | |
.header | |
%span.descr | |
Загрузить фото | |
%span.radio | |
= radio_button_tag :option, :file, checked: true | |
= label_tag :option_file, 'Как файл' | |
%span.radio | |
= radio_button_tag :option, :link | |
= label_tag :option_link, 'Как ссылку' |
helpers._plural = (n, forms)-> | |
forms[if n%10==1 && n%100!=11 then 0 else if n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) then 1 else 2] |
helpers ||= {} | |
helpers.showMessage = (title, content)-> | |
$.fancybox(['<div class="auth"><div class="block">', | |
'<h2>',title,'<a href="#" class="btn-close"><i class="icon-remove"></i></a></h2>', | |
'<div>',content,'</div>', | |
'</div></div>'].join(''),{ | |
wrapCSS: 'modal' | |
closeBtn : false | |
}) |