Skip to content

Instantly share code, notes, and snippets.

ダウンロード

Download link.

wget http://golang.org/dl/go1.3.linux-amd64.tar.gz

解凍

tar zxvf go1.3.linux-amd64.tar.gz

開発環境の設定

sudo -s;
useradd xiangshen-meng;
echo 123456 | passwd xiangshen-meng --stdin;
mkdir /home/xiangshen-meng;
chown xiangshen-meng:xiangshen-meng -R /home/xiangshen-meng;
mkdir .ssh
chmod 755 .ssh/
mv id_rsa* .ssh/
cd .ssh/
cat id_rsa.pub > authorized_keys
vagrant plugin install vagrant-omnibus
  1. shared/navbar
  2. shared/flash_message
  3. documents/key_visual
  4. documents/filter_category
  5. documents/sort
  6. documents/document
  7. shared/footer
  8. documents/modal_share
  9. users/modal_signup
  10. users/modal_signin
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
users = [
{
  • documents/show
  • documents/slide_fullscreen
  • favorites/favorite_forms
  • downloads/create_form
  • documents/share_button
diff --git a/app/views/documents/index.html.erb b/app/views/documents/index.html.erb
index 71a4c9d..0dab7f7 100644
--- a/app/views/documents/index.html.erb
+++ b/app/views/documents/index.html.erb
@@ -47,7 +47,7 @@
</li><!-- /.cateory-btn-area -->
<li class="pager-area pull-right">
- <%= will_paginate @documents, renderer: BootstrapPagination::Rails, class: "pagination pagination-lg" %>
+ <%= will_paginate @documents, renderer: BootstrapPagination::Rails, class: "pagination pagination-lg", previous_label: '<i class="fa fa-chevron-left"></i>', next_label: '<i class="fa fa-chevron-right"></i>' %>