forked from bofh/fetsite
Merge remote-tracking branch 'remotes/origin/master'
Conflicts: app/controllers/config_controller.rb app/views/config/index.html.erb config/routes.rb
This commit is contained in:
@@ -4,8 +4,10 @@ class ConfigController < ApplicationController
|
|||||||
end
|
end
|
||||||
def get_git_update
|
def get_git_update
|
||||||
g = Git.open(".")
|
g = Git.open(".")
|
||||||
|
|
||||||
flash[:notice] =g.status
|
flash[:notice] =g.status
|
||||||
# flash[:notice] =g.remote("github").fetch
|
# flash[:notice] =g.remote("github").fetch
|
||||||
redirect_to config_url
|
redirect_to config_url
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<%= link_to 'Update',config_getgitupdate_url %>
|
<%= link_to 'Update',config_getgitupdate_url %>
|
||||||
|
<%= link_to 'Update',:controller =>"config",:action => "get_git_update" %>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Fetsite::Application.routes.draw do
|
|||||||
resources :beispiele
|
resources :beispiele
|
||||||
|
|
||||||
|
|
||||||
|
devise_for :users
|
||||||
|
|
||||||
scope '(:locale)/admin' do
|
scope '(:locale)/admin' do
|
||||||
resources :users
|
resources :users
|
||||||
@@ -12,6 +13,9 @@ get 'config',:controller=>:config,:action=>:index , :as => 'config'
|
|||||||
get 'config/get_git_update',:controller=>:config,:action=>:get_git_update, :as=>'config_getgitupdate'
|
get 'config/get_git_update',:controller=>:config,:action=>:get_git_update, :as=>'config_getgitupdate'
|
||||||
|
|
||||||
|
|
||||||
|
get 'config/get_git_update',:controller=>:config,:action=>:get_git_update
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
devise_for :users
|
devise_for :users
|
||||||
|
|||||||
Reference in New Issue
Block a user