resolve config_url problems
This commit is contained in:
@@ -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
|
||||
@@ -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 %>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
<p><%= t :hello %></p>
|
||||
<p><%= t 'home.hallobeiderfet' %></p>
|
||||
<p> Test f<>r GIT 1</p>
|
||||
@@ -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
|
||||
%>
|
||||
|
||||
Reference in New Issue
Block a user