snacktime
2007-Nov-25 06:40 UTC
rails 2.0 strangeness. Default layouts not working, methods in application controller not visible
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ben Johnson
2007-Nov-26 04:23 UTC
Re: rails 2.0 strangeness. Default layouts not working, meth
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? > > ChrisI 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---