Skip to content

Error editing repositories #168

@sam002

Description

@sam002

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:

  • first call page:

`

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'
  • second call, and more:
    I got unformatted code in the browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions