Redmine2 — Missing partial #80

Closed
nimnull opened this Issue Jul 27, 2012 · 2 comments

Comments

Projects
None yet
4 participants
@nimnull

nimnull commented Jul 27, 2012

Using branch redmine_2.0:

Environment:
  Redmine version                          2.0.3.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.6
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  redmine_backlogs                         v0.9.26
  redmine_better_gantt_chart               0.7.0
Completed 500 Internal Server Error in 5ms

ActionView::Template::Error (Missing partial settings/better_gantt_chart_settings with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :rsb, :rjs]}. Searched in:
  * "/srv/www-data/redmine2/plugins/redmine_better_gantt_chart/app/views"
  * "/srv/www-data/redmine2/plugins/redmine_backlogs/app/views"
  * "/srv/www-data/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__2190940206593182042_37664660'
  app/views/settings/plugin.html.erb:4:in `_app_views_settings_plugin_html_erb__2190940206593182042_37664660'

partial view exists for path "/srv/www-data/redmine2/plugins/redmine_better_gantt_chart/app/views"

@logical-and

This comment has been minimized.

Show comment
Hide comment
@logical-and

logical-and Aug 10, 2012

The same error.

The same error.

@rkallensee

This comment has been minimized.

Show comment
Hide comment
@rkallensee

rkallensee Sep 2, 2012

I'm currently migrating another plugin to Redmine 2.0 and had a similar problem. You have to do a few things to fix this error:

  • Rename the app/views/settings/_better_gantt_chart_settings.rhtml to app/views/settings/_better_gantt_chart_settings.html.erb.
  • Remove "settings/" prefix for :partial in settings hash in init.rb:
settings(:default => {
  'work_on_weekends' => true,
  'smart_sorting' => true
}, :partial => "better_gantt_chart_settings")

This should fix the mentioned error, but maybe there are more issues with Redmine 2.0.

I'm currently migrating another plugin to Redmine 2.0 and had a similar problem. You have to do a few things to fix this error:

  • Rename the app/views/settings/_better_gantt_chart_settings.rhtml to app/views/settings/_better_gantt_chart_settings.html.erb.
  • Remove "settings/" prefix for :partial in settings hash in init.rb:
settings(:default => {
  'work_on_weekends' => true,
  'smart_sorting' => true
}, :partial => "better_gantt_chart_settings")

This should fix the mentioned error, but maybe there are more issues with Redmine 2.0.

@kulesa kulesa closed this Aug 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment