Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error editing repositories #168

Open
sam002 opened this issue Aug 25, 2012 · 0 comments
Open

Error editing repositories #168

sam002 opened this issue Aug 25, 2012 · 0 comments

Comments

@sam002
Copy link

sam002 commented Aug 25, 2012

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant