resolve config_url problems

This commit is contained in:
Andreas Stephanides
2013-02-17 15:46:48 +01:00
parent 3d60580332
commit 5b8b419fa1
6 changed files with 11 additions and 14 deletions

View File

@@ -4,7 +4,8 @@ class ConfigController < ApplicationController
end
def get_git_update
g = Git.open(".")
flash[:notice] =g.remote("github").fetch
redirect_to url_for(:action => 'index', :controller => 'config')
flash[:notice] =g.status
# flash[:notice] =g.remote("github").fetch
redirect_to config_url
end
end

View File

@@ -4,7 +4,7 @@
<%= link_to '<i class="icon-user"></i>'.html_safe + 'Userverwaltung',:controller =>"users",:action => "index" %>
</li>
</ul>
<%= link_to 'Update',:controller =>"config",:action => "get_git_update" %>
<%= link_to 'Update',config_getgitupdate_url %>

View File

@@ -1,3 +1,2 @@
<p><%= t :hello %></p>
<p><%= t 'home.hallobeiderfet' %></p>
<p> Test f<>r GIT 1</p>

View File

@@ -22,4 +22,5 @@
<% elsif I18n.locale == :de %>
<%= link_to "English" ,switch_locale_url(:en)%>
<%end %>
<%= link_to 'Admin',:controller =>"config",:action => "index" %>
<%= link_to 'Admin' , config_url
%>