forked from bofh/fetsite
remove GIT part 1
This commit is contained in:
4
Gemfile
4
Gemfile
@@ -61,7 +61,11 @@ gem "rolify"
|
|||||||
gem "cancan"
|
gem "cancan"
|
||||||
|
|
||||||
# Fileupload
|
# Fileupload
|
||||||
|
<<<<<<< HEAD
|
||||||
gem 'paperclip' ,'~>3.4.0'
|
gem 'paperclip' ,'~>3.4.0'
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
gem 'git'
|
gem 'git'
|
||||||
|
=======
|
||||||
|
gem 'paperclip' ,'~>3.4.0'
|
||||||
|
>>>>>>> parent of 1085698... add GIT gem
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ GEM
|
|||||||
formtastic-bootstrap (2.0.0)
|
formtastic-bootstrap (2.0.0)
|
||||||
formtastic (~> 2.2)
|
formtastic (~> 2.2)
|
||||||
formtastic-bootstrap
|
formtastic-bootstrap
|
||||||
|
git (1.2.5)
|
||||||
globalize3 (0.3.0)
|
globalize3 (0.3.0)
|
||||||
activemodel (>= 3.0.0)
|
activemodel (>= 3.0.0)
|
||||||
activerecord (>= 3.0.0)
|
activerecord (>= 3.0.0)
|
||||||
@@ -153,6 +154,7 @@ DEPENDENCIES
|
|||||||
execjs (~> 1.4.0)
|
execjs (~> 1.4.0)
|
||||||
formtastic (~> 2.2.1)
|
formtastic (~> 2.2.1)
|
||||||
formtastic-bootstrap
|
formtastic-bootstrap
|
||||||
|
git
|
||||||
globalize3 (~> 0.3.0)
|
globalize3 (~> 0.3.0)
|
||||||
jquery-rails
|
jquery-rails
|
||||||
paper_trail (>= 2.7.0)
|
paper_trail (>= 2.7.0)
|
||||||
|
|||||||
@@ -2,5 +2,9 @@ class ConfigController < ApplicationController
|
|||||||
def index
|
def index
|
||||||
|
|
||||||
end
|
end
|
||||||
|
def get_git_update
|
||||||
|
g = Git.open(".")
|
||||||
|
flash[:notice] =g.remote("github").fetch
|
||||||
|
redirect_to url_for(:action => 'index', :controller => 'config')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
@@ -4,4 +4,8 @@
|
|||||||
<%= link_to '<i class="icon-user"></i>'.html_safe + 'Userverwaltung',:controller =>"users",:action => "index" %>
|
<%= link_to '<i class="icon-user"></i>'.html_safe + 'Userverwaltung',:controller =>"users",:action => "index" %>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<%= link_to 'Update',:controller =>"config",:action => "get_git_update" %>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,13 @@ Fetsite::Application.routes.draw do
|
|||||||
resources :beispiele
|
resources :beispiele
|
||||||
|
|
||||||
|
|
||||||
devise_for :users
|
devise_for :users
|
||||||
scope '(:locale)/admin' do
|
scope '(:locale)/admin' do
|
||||||
resources :users
|
resources :users
|
||||||
get 'config',:controller=>:config,:action=>:index
|
get 'config',:controller=>:config,:action=>:index
|
||||||
|
#get 'config/get_git_update',:controller=>:config,:action=>:get_git_update
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user