This project is archived and is in readonly mode.

#3813 ✓stale
trevor

undefined method `html_safe?' when generating rdoc

Reported by trevor | January 29th, 2010 @ 11:05 PM

is there a fix for this? looks like it's showing up on http://intertwingly.net/projects/AWDwR3/checkdepot-191.html as well

% ruby -v
ruby 1.9.2dev (2010-01-29 trunk 26470) [x86_64-darwin10.2.0]
% rake doc:rails RAILS_PATH="vendor/gems/ruby/1.9.1/gems/rails-3.0.pre" --trace
[...]

Generating Darkfish...
rake aborted!
Error while evaluating /usr/local/lib/ruby/gems/1.9.1/gems/rdoc-2.4.3/lib/rdoc/generator/template/darkfish/index.rhtml: undefined method `html_safe?' for "Rails Framework Documentation":String (at "rset=utf-8\" http-equiv=\"Content-Type\" />\n\n\t<title>")
/rails-edge/actionpack/lib/action_view/erb/util.rb:19:in `html_escape'
/usr/local/lib/ruby/gems/1.9.1/gems/rdoc-2.4.3/lib/rdoc/generator/template/darkfish/index.rhtml:9:in `generate_index'
/usr/local/lib/ruby/1.9.1/erb.rb:753:in `eval'
/usr/local/lib/ruby/1.9.1/erb.rb:753:in `result'
/usr/local/lib/ruby/gems/1.9.1/gems/rdoc-2.4.3/lib/rdoc/generator/darkfish.rb:237:in `generate_index'
/usr/local/lib/ruby/gems/1.9.1/gems/rdoc-2.4.3/lib/rdoc/generator/darkfish.rb:185:in `generate'
/usr/local/lib/ruby/gems/1.9.1/gems/rdoc-2.4.3/lib/rdoc/rdoc.rb:324:in `document'
/railsapp/vendor/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake/rdoctask.rb:140:in `block in define'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:in `call'

Comments and changes to this ticket

  • Mikel Lindsaar

    Mikel Lindsaar February 8th, 2010 @ 10:41 AM

    • Assigned user set to “Mikel Lindsaar”

    Seems to be working here, still a problem for you?

    Mikel

                               rails.rb: mc...............
                                 erb.rb: mmc
                           test_unit.rb: mmc
    Generating HTML...
    
    Files:   412
    Classes: 508
    Modules: 665
    Methods: 2536
    Elapsed: 80.426s
    ** Execute doc:rails
    
  • trevor

    trevor February 8th, 2010 @ 11:15 PM

    unknown. when installing the gems, the rdoc for the libraries are generated, and for rails and railties i get this error through gem server:

    `/doc_root/rails-3.0.0.beta/rdoc/index.html' not found. 
    `/doc_root/railties-3.0.0.beta/rdoc/index.html' not found.
    

    trying to generate via doc:rails isn't working for me -

    % rails -v
    Rails 3.0.0.beta
    % ruby -v
    ruby 1.9.2dev (2010-02-03 trunk 26544) [x86_64-darwin10.2.0]
    % rails myapp
    % cd myapp
    % rake doc:rails
    rake aborted!
    Don't know how to build task 'vendor/gems/gems/actionmailer-3.0.0.beta/README'
    /usr/local/lib/ruby/1.9.1/rake.rb:1720:in []'
    /usr/local/lib/ruby/1.9.1/rake.rb:603:inblock in invoke_prerequisites'
    % mkdir -p vendor/gems/gems
    % cp -R /usr/local/lib/ruby/gems/1.9.1/gems/*.beta vendor/gems/gems
    % mv vendor/gems/gems/actionmailer-3.0.0.beta vendor/gems/gems/actionmailer
    % mv vendor/gems/gems/actionpack-3.0.0.beta vendor/gems/gems/actionpack
    % mv vendor/gems/gems/activemodel-3.0.0.beta vendor/gems/gems/activemodel
    % mv vendor/gems/gems/activerecord-3.0.0.beta vendor/gems/gems/activerecord
    % mv vendor/gems/gems/activeresource-3.0.0.beta vendor/gems/gems/activeresource
    % mv vendor/gems/gems/activesupport-3.0.0.beta vendor/gems/gems/activesupport
    % mv vendor/gems/gems/rails-3.0.0.beta vendor/gems/gems/rails
    % mv vendor/gems/gems/railties-3.0.0.beta vendor/gems/gems/railties
    % rake doc:rails RAILS_PATH="vendor/gems/gems"
    rake aborted!
    Don't know how to build task 'vendor/gems/gems/railties/MIT-LICENSE'
    /usr/local/lib/ruby/1.9.1/rake.rb:1720:in []'
    /usr/local/lib/ruby/1.9.1/rake.rb:603:inblock in invoke_prerequisites'
    
  • Ryan Bigg

    Ryan Bigg April 10th, 2010 @ 06:29 AM

    I tried this on the latest 1.9.2 and it fails because we already have a doc directory. The easiest way of course to get it to continue is to delete this doc directory. Patch pending.

  • Ryan Bigg

    Ryan Bigg April 10th, 2010 @ 08:22 AM

    Here's a patch to fix the issue described above.

  • Jeff Kreeftmeijer
  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 04:29 PM

    • State changed from “new” to “open”

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 04:29 PM

    • State changed from “open” to “stale”
  • bingbing

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages