What is the difference between application.rb and environment.rb in Ruby on Rails?

I am new to Rails and I have a good knowledge of ASP.net. In ASP.net web applications, I have one web.configto complete all my settings, but in Rails there are several configuration files, and I would like to know now what are the differences between them and what is the purpose of these files.

+5
source share
2 answers

Basically, various configuration files are put together web.config, as you know, from ASP.net.

environment.rb

Rails , ASP.net. environment.rb . , , , .

application.rb

- , , .

guide, davids.

+2

guides:

/environment.rb

, config.ru( rails) Passenger. ; .

config/application.rb.

config/application.rb

config/boot.rb, , , .

!

0

All Articles