| Issue 23: | Destroying a tag a NoMethodError in Admin/tagsController#destroy | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Access the administration interface.
2. Erase a tag.
What is the expected output? What do you see instead?
A tag should be erased with no errors. A tag is erased and an error is
shown at the console.
What version of the product are you using? On what operating system?
trunk. Ubuntu 7.04
Please provide any additional information below.
Console output:
NoMethodError (undefined method `render_text' for
#<Admin::TagsController:0xb6a45fb8>):
/vendor/plugins/substruct/app/controllers/admin/tags_controller.rb:77:in
`destroy'
/vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `send'
...
At tag_controller.rb:
def destroy
@tag = Tag.find(params[:id])
tag_id = @tag.id
@tag.destroy
# Render nothing to denote success
render_text ""
end
Again another use of a deprecated method, should be render :text => "" instead.
Apr 8, 2008
Project Member
#1
subim...@gmail.com
Status:
Fixed
|