trustie2/app/helpers/application_helper.rb memo parent_id
This commit is contained in:
parent
196de2fd5e
commit
f76360c150
|
@ -118,9 +118,9 @@ module ApplicationHelper
|
|||
def link_to_message(message, options={}, html_options = nil)
|
||||
link_to(
|
||||
truncate(message.title, :length => 60),
|
||||
board_message_path(message.board_id, message.parent_id || message.id, {
|
||||
:r => (message.parent_id && message.id),
|
||||
:anchor => (message.parent_id ? "message-#{message.id}" : nil)
|
||||
board_message_path(message.board_id, message.id, {
|
||||
:r => (message.id),
|
||||
:anchor => ("message-#{message.id}")
|
||||
}.merge(options)),
|
||||
html_options
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue