Jim
Jim

Reputation: 53

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

Upvotes: 5

Views: 2669

Answers (2)

mark
mark

Reputation: 10564

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

Upvotes: 5

jigfox
jigfox

Reputation: 18185

This file is new to rails 3, in rails 2 most of the things now in application.rb are in the environment.rb.

Upvotes: 4

Related Questions