gatATAC / redmine_startpage

A Redmine plugins to allow user to select almost any redmine sub page as start page for a Redmine website
http://gatatac.org/projects/redmine-startpage/wiki
33 stars 12 forks source link

not compatible with redmine 2.0.x #3

Closed marcelhuberfoo closed 11 years ago

marcelhuberfoo commented 12 years ago

currently it does not seem to properly work with redmine 2.0

when I want to configure the plugin I get the following output:

Started GET "/settings/plugin/redmine_startpage" for xx.xx.xx.xx at 2012-08-07 09:42:27 +0200
Processing by SettingsController#plugin as HTML
  Parameters: {"id"=>"redmine_startpage"}
  Rendered settings/plugin.html.erb within layouts/admin (4.1ms)
Completed 500 Internal Server Error in 8ms

ActionView::Template::Error (Missing partial settings/startpage_settings with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :rsb, :rjs]}. Searched in:
  * "/var/lib/redmine2/plugins/wiki_external_filter/app/views"
  * "/var/lib/redmine2/plugins/redmine_startpage/app/views"
  * "/var/lib/redmine2/plugins/redmine_recaptcha/app/views"
  * "/var/lib/redmine2/plugins/redmine_mylyn_connector/app/views"
  * "/var/lib/redmine2/plugins/redmine_lightbox/app/views"
  * "/var/lib/redmine2/plugins/redmine_knowledgebase/app/views"
  * "/var/lib/redmine2/plugins/redmine_hudson/app/views"
  * "/var/lib/redmine2/plugins/redmine_bots_filter/app/views"
  * "/var/lib/redmine2/plugins/redmine_blocks/app/views"
  * "/var/lib/redmine2/plugins/redmine_attach_screenshot/app/views"
  * "/var/lib/redmine2/app/views"
):
    3: <div id="settings">
    4: <%= form_tag({:action => 'plugin'}) do %>
    5: <div class="box tabular">
    6: <%= render :partial => @partial, :locals => {:settings => @settings}%>
    7: </div>
    8: <%= submit_tag l(:button_apply) %>
    9: <% end %>
  app/views/settings/plugin.html.erb:6:in `block in _app_views_settings_plugin_html_erb___3172480926861143971_70202218224340'
  app/views/settings/plugin.html.erb:4:in `_app_views_settings_plugin_html_erb___3172480926861143971_70202218224340'

environment

Environment:
  Redmine version                          2.0.3.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.6
  Environment                              production
  Database adapter                         SQLite
Redmine plugins:
  redmine_attach_screenshot                0.1.0
  redmine_auto_percent                     0.0.1
  redmine_blocks                           0.0.2
  redmine_bots_filter                      1.02
  redmine_hudson                           1.0.8.1
  redmine_knowledgebase                    2.1.1
  redmine_lightbox                         0.0.1
  redmine_mylyn_connector                  2.8.2.stable
  redmine_recaptcha                        0.1.0
  redmine_startpage                        0.0.2  (c089afb Solved #18)
  wiki_external_filter                     0.0.2
  wiki_graphviz_plugin                     0.3.0
tom-kuca commented 12 years ago

Partially solved by #4. The pull request should fix the settings page, but the plugin still not works for me - the controller from plugin is not loaded, dunno why. Workaround is to require it manually - append require_relative 'app/controllers/welcome_controller' to init.rb. But there is probably better solution.

duanejevon commented 11 years ago

solved in #7

duanejevon commented 11 years ago

Apologies to tom-kuca - my commit will conflict with your commit, regarding the file renaming... didn't notice that till after i hit "enter" to commit my changes :)

txinto commented 11 years ago

Thanks for solving it!