简体   繁体   中英

Where is the application.rb file located?

Im new to Ruby On Rails.Im using Ruby version 1.8.7 and Rails version 2.3.8.I created a controller SayHello using

ruby script/generate controller SayHello

The application works as expected, but i cant find the application.rb file. Where is the application.rb file located ?

Please Help Thank You

I assume you're looking for the application controller which was named application.rb prior to rails 2.3 but is since application_controller.rb.

http://guides.rubyonrails.org/2_3_release_notes.html#application-controller-renamed

controllers>application_controller.rb

这个文件是rails 3的新手,在rails 2中,application.rb中的大部分内容都在environment.rb中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM