Merge pull request #3207 from evazion/feat-note-links

Fix #3205: Add ability to link to individual notes
This commit is contained in:
Albert Yi
2017-07-07 18:59:39 -07:00
committed by GitHub
6 changed files with 62 additions and 14 deletions

View File

@@ -17,7 +17,9 @@ class NotesController < ApplicationController
def show
@note = Note.find(params[:id])
respond_with(@note)
respond_with(@note) do |format|
format.html { redirect_to(post_path(@note.post, anchor: "note-#{@note.id}")) }
end
end
def create