Last active
February 23, 2021 18:46
Revisions
-
shivamag00 renamed this gist
Feb 23, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
shivamag00 created this gist
Feb 23, 2021 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ def get_article_by_id @articles = Article.find(params[:id]).as_json(only: [:id, :title, :slug, :description, :processed_html, :tag_list]) msg = { :status => "ok", :message => "Success!", :html => "<b>...</b>" } render :json => @articles end