Defect #22
New Wiki , cannot create new page.
| Status: | Closed | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
Description
Based on SVN trunk.
When I created a new Wiki and tried to access the new wiki home page I would get the following error
NoMethodError (undefined method `empty?' for nil:NilClass):
/app/controllers/wiki_controller.rb:47:in `edit'
/app/controllers/wiki_controller.rb:27:in `index'
Changing the following line (47 in wiki controller)
@content.text = "h1. #{@page.pretty_title}" if @content.text.empty?
to
@content.text = "h1. #{@page.pretty_title}" if @content.text.nil?
Appears to have fixed it for me, not sure what I have broken yet by doing this ;)