# Rails 2.0 strangeness. Default layouts not working, methods in application controller not visible

**URL:** <https://www.ruby-forum.com/t/rails-2-0-strangeness-default-layouts-not-working-methods-in-application-controller-not-visible/121199>\
**Category:** Rails\
**Created:** [November 25, 2007, 7:41am UTC](https://www.ruby-forum.com/t/rails-2-0-strangeness-default-layouts-not-working-methods-in-application-controller-not-visible/121199 "2007-11-25T07:41:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snacktime](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Post date:** [November 25, 2007, 7:41am UTC](https://www.ruby-forum.com/t/rails-2-0-strangeness-default-layouts-not-working-methods-in-application-controller-not-visible/121199/1 "2007-11-25T07:41:05Z")

</div>

Either my app has some bad config files, or some basic behaviors have  
changed without any documentation.

1. Default layouts are not being applied
2. Helper methods in application\_helper.rb not visible unless helper  
:all is set in the controller.
3. Methods in application controller not visible in other controllers.

These things all worked fine in 1.2.x versions. What could be going on  
here?

Chris

---

<div class="post-metadata">

**Author:** ![snacktime](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Post date:** [November 26, 2007, 5:23am UTC](https://www.ruby-forum.com/t/rails-2-0-strangeness-default-layouts-not-working-methods-in-application-controller-not-visible/121199/2 "2007-11-26T05:23:51Z")

</div>

snacktime wrote:

> Either my app has some bad config files, or some basic behaviors have  
> changed without any documentation.
> 
> 1. Default layouts are not being applied
> 2. Helper methods in application\_helper.rb not visible unless helper  
> :all is set in the controller.
> 3. Methods in application controller not visible in other controllers.
> 
> These things all worked fine in 1.2.x versions. What could be going on  
> here?
> 
> Chris

I would double check that everything in your environment.rb file is  
correct since you went from an older version to a newer version. Also,  
do some search from upgrading from rails 1.2 to 2.0. I bet there are a  
couple of things you need to do. Also, your last option would be to  
create a new rails app under the new 2.0 version and then copy over your  
views, models, controllers, etc. This way you know the base files are  
correct: your environment.rb, etc.
