anchor.diff:  			end;
   		<<"POST">> -> 		
   			lager:info("Create news"),
  -			case Body = save_to_db(Req) of 			
  +			Body = save_to_db(Req),
  +			erlang: display (Body),
  +			case Body of 			
   				{fail, Error} ->
   					lager:error("Error create news, reason : ", [Error]),
   					Req2 = cowboy_req:set_resp_body(Error, Req),
  
positive.code: %% @doc @todo Add description to news_handler.
  
  -module(news_handler).
  
  -import(mnesia_news, [get_all_news/0, get_news/1, create_news/1, update_news/2, delete_news/1]).
  -import(validate_html, [validate_html/1]).
  
  %% ====================================================================
  %% API functions
  
negative.code: 	catch
  	    error:badarg -> 
  			lager:error("Error get news_id path variable"),
  			{fail, jsx:encode([{<<"error">>, <<"Wrong news_id path variable.">>}])}
  	end.
  
  %% Convert db data for rest representation (updated)
  generate_news(T) ->
  	[[{<<"id">>, Id}, {<<"content">>, Content}] || {_, Id, Content} <- T].
  	
  %% Convert db data for rest representation
  convert_news(Resp) -> convert_news(Resp, []).
  convert_news({atomic,[]},[]) -> [];
  convert_news([], Resp) -> lists:reverse(Resp);
  convert_news([Head | Tail], Resp) -> 
  	{_, Id, Content} = Head,
  	convert_news(Tail, [[{<<"id">>, Id},{<<"content">>, Content}] | Resp]).
  