Method: Ems::NewsController#show

Defined in:
app/controllers/ems/news_controller.rb

#showObject

GET /news/1 GET /news/1.json



17
18
19
20
21
22
23
24
# File 'app/controllers/ems/news_controller.rb', line 17

def show
  @news = News.find(params[:id])
  
  respond_to do |format|
    format.html # show.html.erb
    format.json { render json: @news }
  end
end