Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails render json only some attributes

@videos = Video.select("id, name, title").all
render json: @videos
 
PREVIOUS NEXT
Tagged: #rails #render #json #attributes
ADD COMMENT
Topic
Name
7+2 =