Open ghost opened 12 years ago
I had the same problem. I think the solution would be to install the TabularFormBuilder plugin, with the next command: ruby script/plugin install http://svn.rubaidh.com/plugins/trunk/form_builders
buti it didn't work for me. So maybe i did something wrong or this isn't the solution.
But i discovered that the problem is the lack of the library tabular_form_builder.rb (into the lib/ directory) So i downloaded the lib from here: http://svn.ohwr.org/ohr-support/trunk/lib/tabular_form_builder.rb and i put the tabular_form_builder.rb into redmine_root/lib directory. Then i restarted apache2 and everything works now.
I think, somebody removed this library... maybe for error. i had an old installation and the library is present.
Ok. Since the redmine crew has completely removed tabular_form_builder.rb (not a mistake -- part of the cleanup), it is better to move forward instead of backwards. I added a handler that defines the labelled_form_for and labelled_remote_form_for functions for pre-1.3.1 redmine, and altered views to fix it.
Note that they have altered the route structure as well, which causes problems with the redmine plugin.
My master branch contains a (backward-compatible) fix for these issues (as well as a number of fixes that make things more resilient, in general). Please try it out:
https://github.com/kubitron/redmine_git_hosting
Let me know how things work...
If you tried this yesterday, please reset and repull... Slight bug in one of the commits.
I was having a similar issue on redmine 1.3.2 and the latest pull from this plugin.
Processing MyController#account (for 192.168.20.3 at 2012-04-01 01:37:53) [GET]
Parameters: {"action"=>"account", "controller"=>"my"}
Rendering template within layouts/base
Rendering my/account
ActionView::TemplateError (uninitialized constant ApplicationHelper::TabularFormBuilder) on line #9 of vendor/plugins/redmine_git_hosting/app/views/my/account.html.erb:
6: <%= error_messages_for 'user' %>
7:
8: <div class="splitcontentleft">
9: <% labelled_form_for :user, @user, :url => { :action => "account" }, :html => { :id => 'my_account_form' } do |f| %>
10: <fieldset class="box tabular">
11: <legend><%=l(:label_information_plural)%></legend>
12: <p><%= f.text_field :firstname, :required => true %></p>
vendor/plugins/redmine_git_hosting/app/helpers/application_helper.rb:14:in `labelled_form_for'
vendor/plugins/redmine_git_hosting/app/views/my/account.html.erb:9
public/dispatch.fcgi:24
I had to remove the backward campatility definitions of labelled_form_for and others in application_helper.rb. Once I did that My Account loaded fine.
I moved this to the correct place: https://github.com/kubitron/redmine_git_hosting/issues/37
Which version of the plugin are you referring to? Is this a problem with my version (https://github.com/kubitron/redmine_git_hosting)? If so, please post over there. (p.s. I am using my version with 1.3.2 without problem). If there is something about your environment that is causing problems with this, I'd like to fix it.
You should close this issue here, since it is for my branch...
This isn't my issue I thought my issue was related. I don't have permission to close it.
Ok. No problem. You are right, of course.
With the newest Redmine SVN, I am getting an error when visiting the Redmine project settings page.