#Laravel in action Resource
共有情報総合
####開発環境構築 https://gist.github.com/Xiangshen-Meng/095585fef0d84b30a03a
#Laravel in action Resource
共有情報総合
####開発環境構築 https://gist.github.com/Xiangshen-Meng/095585fef0d84b30a03a
##開発環境構築
###仮想マシンでLinuxを構築
####Vagrant + VirtualBox
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
Download VirtualBox and install https://www.virtualbox.org/wiki/Downloads
Download Vagrant and Install https://www.vagrantup.com/downloads.html
# 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 = [ | |
{ |
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>' %> |