Bug #1250

sidebar generat empty content.rhtml

Added by Cyril Mougel 114 days ago. Updated 85 days ago.

Status :New Start :08/09/2008
Priority :Normal Due date :
Assigned to :neuro - % Done :

0%

Category :backend
Target version :5.1.4 Estimated time :1.00 hour
Resolution :


Description

If I use the Typo's generator for sidebar I am an error :

shingara@slick ~/perso/project/typo_trunk $ ./script/generate sidebar TestSidebar
      create  vendor/plugins/test_sidebar/lib
      create  vendor/plugins/test_sidebar/test
      create  vendor/plugins/test_sidebar/views
      create  vendor/plugins/test_sidebar/init.rb
      create  vendor/plugins/test_sidebar/lib/test_sidebar.rb
      create  vendor/plugins/test_sidebar/test/test_sidebar_test.rb
      create  vendor/plugins/test_sidebar/Rakefile
      create  vendor/plugins/test_sidebar/views/content.rhtml
No such file or directory - /home/shingara/perso/project/typo_trunk/lib/generators/sidebar/templates/content.rhtml

So the file vendor/plugins/test_sidebar/views/content.rhtml is empty

This error is made because in lib/generators/sidebar/templates/ there are no file content.rhtml but a content.html.erb So you need change this filename by content.rhtml.

You can't change the name of content.rhtml in sidebar because now the render_sidebar use this particular file and all sidebar use this and not another.

I can made a patch to test if there are a file content.html.erb or content.rhtml before. But I don't know if it's a good idea.

History

08/30/2008 10:42 AM - neuro -

  • Assigned to set to neuro -
  • Target version set to 5.2
  • Estimated time set to 1.0

Sidebars should use html.erb, but I ll leave a test for backward compatibility.

09/07/2008 10:44 AM - neuro -

  • Target version changed from 5.2 to 5.1.4

Also available in: Atom PDF