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 applica开发者_Python百科tion.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
This file is new to rails 3, in rails 2 most of the things now in application.rb are in the environment.rb.
精彩评论