ericpaulbishop / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
185 stars 37 forks source link

Error editing repositories #168

Open sam002 opened 12 years ago

sam002 commented 12 years ago

For "2.0-migration" branch.

Started GET "/repositories/12/edit" for 0.my.ip.0 at 2012-08-25 06:27:03 +0400
Processing by RepositoriesController#edit as HTML
  Parameters: {"id"=>"12"}
  Rendered plugins/redmine_git_hosting/app/views/projects/settings/_repository.html.erb (77.9ms)
Completed 500 Internal Server Error in 471ms

ActionView::Template::Error (wrong number of arguments (3 for 2)):
    36: 
    37: <!--% end %-->
    38: 
    39: <% labelled_remote_form_for :repository, @repository, :url => { :controller => 'repositories', :action => 'edit', :id => @project } do |f| %>
    40:     <%= error_messages_for 'repository' %>
    41: <!--    <div class="splitcontentleft"> -->
    42:         <div class="box tabular">
app/helpers/application_helper.rb:964:in `labelled_remote_form_for'

After changes

 -<% labelled_remote_form_for :repository, @repository, :url => { :controller => 'repositories', :action => 'edit', :id => @project } do |f| %>
 +<% labelled_remote_form_for :repository, :url => { :controller => 'repositories', :action => 'edit', :id => @project } do |f| %>

I have the problem:

`

Started GET "/repositories/12/edit" for 0.my.ip.0 at 2012-08-25 06:12:57 +0400
Processing by RepositoriesController#edit as HTML
  Parameters: {"id"=>"12"}
  Rendered plugins/redmine_git_hosting/app/views/projects/settings/_repository.html.erb (712.9ms)
Completed 500 Internal Server Error in 743ms
ActionView::Template::Error (undefined method named_scope for Class00000006657f38):
   136:                 </div>
   137:             <% end %>
   138: 
   139:             <% if @repository.project.repository_mirrors.any? %>
   140:                 <div class="autoscroll">
   141:                     <table class="list" style="margin: 2px 3px; width: 99%; ">
   142:                         <thead>
 app/helpers/application_helper.rb:964:in `labelled_remote_form_for'