I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #1933

Undefined method `title' for nil:NilClass

Added by Andriy Lesyuk about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Major
Assignee:
Target version:
Start date:
06 Jan 2012
Due date:
31 Jan 2012
% Done:

100%

Redmine version:
1.2.2
External issue:

Description

When accessing .../projects/.../wiki/index gives:

ActionView::TemplateError (undefined method `title' for nil:NilClass) on line #5 of vendor/plugins/like/app/views/like/wiki/_sidebar.rhtml:
2: <% if settings[:location] == 'sidebar' %>
3:   <% url = request.params[:action] == 'show' ?
4:            canonical_url_for(:controller => 'wiki', :action => 'show', :project_id => project, :id => page.title) :
5:            canonical_url_for(:controller => 'wiki', :action => 'index', :id => project, :page => page.title) %>
6:   <p><%= render(:partial => 'like/common/facebook', :locals => { :url => url }) %></p>
7: <% end %>

The Like button is placed on sidebar...

History

#1 Updated by Andriy Lesyuk almost 9 years ago

  • Due date set to 31 Jan 2012
  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF

Terms of use | Privacy policy