How to serve static JSON object from file in rails? (I want to access it when calling ajax)?
What is the best method?
Just put what you want to visualize in a variable, then use render :json => variableThere are reasonable defaults for lists, dicts, etc.
render :json => variable
See this: http://guides.rubyonrails.org/layouts_and_rendering.html
Item: "2.2.8 Rendering JSON"
Source: https://habr.com/ru/post/918719/More articles:โChange source controlโ is not on the menu - Team Foundation Server 2010 - visual-studio-2010IoC Initialize a service using hard work in the constructor, but avoiding the temporary Init () method - c #How to maintain static json file in rails? - jsonDisplaying invalid XML syntax with AvalonEdit - c #Cannot Cancel Team Foundation Server 2010 Solution - tfsHow can I show or hide some buttons depending on user rights in angularjs? - angularjsNHibernate emitting extraneous update statements regardless of the correct settings for the Inverse (smooth nhibernate) relationship - c #https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/918722/azure-cloud-domain-controller-servicing-mobile-desktops-with-azure-connect&usg=ALkJrhj8E2Ve7UYqiuBzz1jsLmUDW24jmgHow to determine which JSON object is used (Crockford or another)? - jsonIs it possible to redirect bash -v output? - bashAll Articles