json.partial! "commons/success" json.data do json.id @board.id json.name @board.fix_name json.parent_id @board.parent_id json.total_count @messages.total_count json.messages do json.array! @messages do |message| json.partial! "messages/message", message: message json.author do json.partial! "users/user_simple", user: message.author end end end end