Skip to content

Instantly share code, notes, and snippets.

@jonpaul
Created May 27, 2011 02:58
Show Gist options
  • Save jonpaul/994559 to your computer and use it in GitHub Desktop.
Save jonpaul/994559 to your computer and use it in GitHub Desktop.
def create
@note = @project.notes.new(params[:note])
@note.save
respond_with(@note, :layout => !request.xhr? )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment