Created
May 22, 2011 06:26
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def read | |
| self.read = true if self.read == false | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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