guilhermenoronha / redmine_send_mails

2 stars 1 forks source link

undefined method `no_self_notified' #3

Closed coagulant closed 10 years ago

coagulant commented 10 years ago

Tried latest commit, got this error on "My page"

ActionView::Template::Error: undefined method `no_self_notified' for #<UserPreference:0x00000006a81f78>

Stacktrace (most recent call first):

  File "active_model/attribute_methods.rb", line 407, in method_missing
    match ? attribute_missing(match, *args, &block) : super
  File "active_record/attribute_methods.rb", line 149, in method_missing
    super
  File "action_view/helpers/form_helper.rb", line 1152, in value
    object.send method_name if object
  File "action_view/helpers/form_helper.rb", line 1143, in value
    self.class.value(object, @method_name)
  File "action_view/helpers/form_helper.rb", line 1091, in to_check_box_tag
    checked = self.class.check_box_checked?(value(object), checked_value)
  File "action_view/helpers/form_helper.rb", line 841, in check_box
    InstanceTag.new(object_name, method, self, options.delete(:object)).to_check_box_tag(options, checked_value, unchecked_value)
  File "action_view/helpers/form_helper.rb", line 1325, in check_box
    @template.check_box(@object_name, method, objectify_options(options), checked_value, unchecked_value)
  File "/home/redmine/redmine_app/plugins/redmine_send_mails/app/views/users/_mail_notifications.html.erb", line 25, in block in _plugins_redmine_send_mails_app_views_users__mail_notifications_html_erb___839800759882523824_55007240
    <%= pref_fields.check_box :no_self_notified %>
  File "action_view/helpers/capture_helper.rb", line 40, in block in capture
    buffer = with_output_buffer { value = yield(*args) }
  File "action_view/helpers/capture_helper.rb", line 187, in with_output_buffer
    yield
  File "action_view/helpers/capture_helper.rb", line 40, in capture
    buffer = with_output_buffer { value = yield(*args) }
  File "action_view/helpers/form_helper.rb", line 605, in fields_for
    output = capture(builder, &block)
  File "/home/redmine/redmine_app/plugins/redmine_send_mails/app/views/users/_mail_notifications.html.erb", line 23, in _plugins_redmine_send_mails_app_views_users__mail_notifications_html_erb___839800759882523824_55007240
    <%= fields_for :pref, @user.pref do |pref_fields| %>
  File "action_view/template.rb", line 145, in block in render
    view.send(method_name, locals, buffer, &block)
  File "active_support/notifications.rb", line 125, in instrument
    yield payload if block_given?
  File "action_view/template.rb", line 143, in render
    ActiveSupport::Notifications.instrument("!render_template.action_view", :virtual_path => @virtual_path) do
  File "action_view/renderer/partial_renderer.rb", line 265, in render_partial
    content = @template.render(view, locals) do |*name|
  File "action_view/renderer/partial_renderer.rb", line 238, in block in render
    render_partial
  File "action_view/renderer/abstract_renderer.rb", line 38, in block in instrument
    ActiveSupport::Notifications.instrument("render_#{name}.action_view", options){ yield }
  File "active_support/notifications.rb", line 123, in block in instrument
    instrumenter.instrument(name, payload) { yield payload if block_given? }
guilhermenoronha commented 10 years ago

Hello coagulant,

What is your redmine version?

coagulant commented 10 years ago

Redmine 2.3.1.stable.11984

guilhermenoronha commented 10 years ago

Commited on branch 2.3.x. Please check if this commit was OK for your problem. If yes, please close the question. Thanks.