gtt-project / redmine_custom_fields_groups

Redmine plugin for grouping custom fields.
GNU General Public License v3.0
12 stars 4 forks source link

Automatic code reloading doesn't work on development environment #9

Closed sanak closed 2 years ago

sanak commented 2 years ago

Same as https://github.com/gtt-project/redmine_attachment_categories/issues/14

Problem Automatic code reloading doesn't work on development environment.

  Rendered issues/show.html.erb within layouts/base (186.1ms)
Completed 500 Internal Server Error in 734ms (ActiveRecord: 68.6ms)

ActionView::Template::Error (undefined method `render_custom_fields_rows_by_groups' for #<#<Class:0x00007fe34d3e40a8>:0x00007fe3567aed38>
Did you mean?  render_custom_fields_tabs):
    75:     rows.right l(:label_spent_time), issue_spent_hours_details(@issue), :class => 'spent-time'
    76:   end
    77: end %>
    78: <%= render_custom_fields_rows_by_groups(@issue) %>
    79: <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
    80: </div>
    81: 

app/views/issues/show.html.erb:78:in `_app_views_issues_show_html_erb___4227993626553242008_150560'
app/controllers/issues_controller.rb:112:in `block (2 levels) in show'
app/controllers/issues_controller.rb:104:in `show'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

To Reproduce

  1. Launch server by bundle exec rails s -b 0
  2. Open localhost:3000 by browser, then access to some view
  3. Edit arbitral source file (like config/locale/ja.yml)
  4. Reload browser

Expectation Automatic code reloading works without 500 error