My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  Fixed
Owner:  ----
Closed:  Apr 2008


 
Reported by edmundo...@gmail.com, Feb 22, 2008
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
Fixed by rev #47
Status: Fixed

Powered by Google Project Hosting