Posts

Showing posts from January, 2023

Exchange data between controller view in rails.

 https://dev-yakuza.posstree.com/en/ruby-on-rails/data-in-controller-view-route/

Encapsulation and abstraction in ruby on rails

 https://www.guru99.com/difference-between-abstraction-and-encapsulation.html

what is cors in rails

What is CORS  :: Set up the React js frontend with Backend  In English In short, CORS is an HTTP-header based security mechanism that  defines who's allowed to interact with your API . CORS is built into all modern web browsers, so in this case the “client” is a front-end of the application. In the most simple scenario, CORS will block all requests from a different origin than your API. 30 ............................................................................. https://medium.com/swlh/how-i-connect-my-rails-backend-to-the-js-frontend-1e02c92966c2 https://www.stackhawk.com/blog/rails-cors-guide/#:~:text=In%20short%2C%20CORS%20is%20an,different%20origin%20than%20your%20API.

optimization in ruby on rails how to improve the performance of the ruby on rails application

Image
 https://www.airpair.com/ruby-on-rails/performance#:~:text=The%2080%2D20%20rule%20of,has%20a%20large%20memory%20footprint. software experts Rails Performance - What You Need To Know TABLE OF CONTENTS 1 Introduction 1.1 Steps for optimizing a Rails app 2 How Can We Make A Rails App Faster? 2.1 Avoid Memory Intensive Rails Features 2.2 Write Less Ruby 2.3 Fine-tune Unicorn 2.4 Limit Growth 2.5 Tune Ruby GC 2.6 Profile 2.7 Write Performance Tests 3 Closing Thoughts Alexander Dymo Alex is the co-author of the KDevelop IDE for Linux and Mac and was the founding engineer at Acunote. 1 Introduction I often hear that Rails is slow. This has become a common theme among the Ruby and Rails community. But it is actually a myth. It's easy to make your application up to 10x faster just by using Rails in the right way. Here's what you need to know to optimize your Rails application. 1.1 Steps for optimizing a Rails app There are only two reasons why Rails application might be slow: Ruby and R...