Rails How to get post raw data


on Rails 2.3.4 when reading the raw post body using command ( If the RAW_POST_DATA environment variable is already set)
 
request.raw_post
 
information = request.raw_post
data_parsed = JSON.parse(information) 

留言

熱門文章