Skip to content

Instantly share code, notes, and snippets.

@meltzerj
Created May 22, 2011 06:26
Show Gist options
  • Select an option

  • Save meltzerj/985225 to your computer and use it in GitHub Desktop.

Select an option

Save meltzerj/985225 to your computer and use it in GitHub Desktop.
The error is point to the read method in the user_notification model
def read
self.read = true if self.read == false
end
def selected_notification
UserNotification.find_by_id(params['id']).read
respond_to do |format|
format.html
format.js { render 'notification_go.js.erb' }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment