- Upgraded to 0.13.1 - followed instructions on Wiki on modifying SLG to work with 0.13.1 - followed instructions in SLG''s README files to get it working with my app. Getting this annoying error: uninitialized constant CONFIG Anyone have any ideas? I know the CONFIG object is something that is used by both the Localization generator as well as the Login generator. They are defined within the environment files - $RAILS_ROOT/config/environments/localization_environment.rb - $RAILS_ROOT/config/environments/user_environment.rb Here is the full error message with the stack trace NameError in User#login Showing */user/login.rhtml* where line *#2* raised: uninitialized constant CONFIG Extracted source (around line *#2*): 1: <div title="<%= title_helper %>" class="form"> 2: <%= head_helper %> 3: 4: <div class="form-padding"> 5: <%= start_form_tag_helper %> <http://www.yaram.com/user/login#> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:186:in `const_missing'' /lib/localization.rb:8:in `l'' /app/helpers/user_helper.rb:67:in `head_helper'' (erb):2:in `evaluate_locals'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:588:in `render_with_no_layout'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:591:in `render_with_no_layout'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:604:in `render_with_no_layout'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:627:in `render_with_no_layout'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:210:in `render_without_benchmark'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' app/controllers/user_controller.rb:187:in `generate_blank'' app/controllers/user_controller.rb:8:in `login'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `perform_action_without_filters'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in `perform_action_without_benchmark'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `measure'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in `perform_action'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi'' /usr/lib/site_ruby/1.8/fcgi.rb:597:in `session'' /usr/lib/site_ruby/1.8/fcgi.rb:104:in `each_request'' /usr/lib/site_ruby/1.8/fcgi.rb:36:in `each'' /usr/lib/site_ruby/1.8/fcgi.rb:597:in `each_cgi'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!'' /home/ramin/projects/rails/sandbox/yaram/public/dispatch.fcgi:24 Notice how the stack trace mentions lib/localization.rb line 1, which is the the line that is calling ''iconv''. i wonder if its related to that. I do know that before I upgraded to 0.13.x, my app was working fine with the SLG. Any ideas? -- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Richard Piacentini
2005-Jul-13 21:21 UTC
Re: uninitialized constant CONFIG - Salted Login Gen.
Hi Ramin, i''m not using salted login but encounters the same problem, with localisation generator, after upgrading to 0.13.1. in my view i use now Localization::CONFIG instead of CONFIG and it works Richard> - Upgraded to 0.13.1 > - followed instructions on Wiki on modifying SLG to work with 0.13.1 > - followed instructions in SLG''s README files to get it working with > my app. > > Getting this annoying error: > uninitialized constant CONFIG > Anyone have any ideas? I know the CONFIG object is something that is > used by both the Localization generator as well as the Login > generator. They are defined within the environment files > > - $RAILS_ROOT/config/environments/localization_environment.rb > - $RAILS_ROOT/config/environments/user_environment.rb > > Here is the full error message with the stack trace > > > > NameError in User#login > Showing /user/login.rhtml where line #2 raised: > > uninitialized constant CONFIG > > Extracted source (around line #2): > > 1: <div title="<%= title_helper %>" class="form"> > 2: <%= head_helper %> > 3: > 4: <div class="form-padding"> > 5: <%= start_form_tag_helper %> > > > /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:186:in `const_missing'' > /lib/localization.rb:8:in `l'' > /app/helpers/user_helper.rb:67:in `head_helper'' > > (erb):2:in `evaluate_locals'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template'' > /usr/lib/ruby/gems/1.8/gems/actionpack- > 1.9.1/lib/action_view/base.rb:173:in `render_file'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:588:in `render_with_no_layout'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure'' > /usr/lib/ruby/gems/1.8/gems/actionpack- > 1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:591:in `render_with_no_layout'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure'' > /usr/lib/ruby/gems/1.8/gems/actionpack- > 1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:604:in `render_with_no_layout'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure'' > /usr/lib/ruby/gems/1.8/gems/actionpack- > 1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:627:in `render_with_no_layout'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:210:in `render_without_benchmark'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure'' > /usr/lib/ruby/gems/1.8/gems/actionpack- > 1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > app/controllers/user_controller.rb:187:in `generate_blank'' > app/controllers/user_controller.rb:8:in `login'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `send'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `perform_action_without_filters'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in `perform_action_without_benchmark'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `measure'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in `perform_action'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process'' > /usr/lib/ruby/gems/1.8/gems/rails- > 0.13.1/lib/dispatcher.rb:32:in `dispatch'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!'' > /usr/lib/ruby/gems/1.8/gems/rails- > 0.13.1/lib/fcgi_handler.rb:55:in `each_cgi'' > /usr/lib/site_ruby/1.8/fcgi.rb:597:in `session'' > /usr/lib/site_ruby/1.8/fcgi.rb:104:in `each_request'' > /usr/lib/site_ruby/1.8/fcgi.rb:36:in `each'' > /usr/lib/site_ruby/1.8/fcgi.rb:597:in `each_cgi'' > > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!'' > /home/ramin/projects/rails/sandbox/yaram/public/dispatch.fcgi:24 > > > > Notice how the stack trace mentions lib/localization.rb line 1, which > is the the line that is calling ''iconv''. i wonder if its related to > that. I do know that before I upgraded to 0.13.x, my app was working > fine with the SLG. Any ideas? > > -- > - Ramin > http://www.getintothis.com/blog > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
I''m sorry, what do you mean in your view? Where exactly do I have to modify the CONFIG and change it to Localization::CONFIG. The only places where I see CONFIG defined or used are within the lib/localization.rb and config/environments/localization_environment.rb files. I appreciate the help, Ramin On 7/13/05, Richard Piacentini <ricp-nFa1xD8ZTHc@public.gmane.org> wrote:> > Hi Ramin, > > i''m not using salted login but encounters the same problem, with > localisation generator, after upgrading to 0.13.1. > > in my view i use now Localization::CONFIG instead of CONFIG and it works > > Richard > > > > - Upgraded to 0.13.1 > > - followed instructions on Wiki on modifying SLG to work with 0.13.1 > > - followed instructions in SLG''s README files to get it working with > > my app. > > > > Getting this annoying error: > > uninitialized constant CONFIG > > Anyone have any ideas? I know the CONFIG object is something that is > > used by both the Localization generator as well as the Login > > generator. They are defined within the environment files > > > > - $RAILS_ROOT/config/environments/localization_environment.rb > > - $RAILS_ROOT/config/environments/user_environment.rb > > > > Here is the full error message with the stack trace > > > > > > > > NameError in User#login > > Showing /user/login.rhtml where line #2 raised: > > > > uninitialized constant CONFIG > > > > Extracted source (around line #2): > > > > 1: <div title="<%= title_helper %>" class="form"> > > 2: <%= head_helper %> > > 3: > > 4: <div class="form-padding"> > > 5: <%= start_form_tag_helper %> > > > > > > /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:186:in > `const_missing'' > > /lib/localization.rb:8:in `l'' > > /app/helpers/user_helper.rb:67:in `head_helper'' > > > > (erb):2:in `evaluate_locals'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:272:in > `evaluate_locals'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:283:in > `rhtml_render'' > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in > `send'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in > `render_template'' > > /usr/lib/ruby/gems/1.8/gems/actionpack- > > 1.9.1/lib/action_view/base.rb:173:in `render_file'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:588:in > `render_with_no_layout'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > `render_without_benchmark'' > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in > `render'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in > `measure'' > > /usr/lib/ruby/gems/1.8/gems/actionpack- > > 1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:591:in > `render_with_no_layout'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > `render_without_benchmark'' > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in > `render'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in > `measure'' > > /usr/lib/ruby/gems/1.8/gems/actionpack- > > 1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:604:in > `render_with_no_layout'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > `render_without_benchmark'' > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in > `render'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in > `measure'' > > /usr/lib/ruby/gems/1.8/gems/actionpack- > > 1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:627:in > `render_with_no_layout'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:210:in > `render_without_benchmark'' > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in > `render'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in > `measure'' > > /usr/lib/ruby/gems/1.8/gems/actionpack- > > 1.9.1/lib/action_controller/benchmarking.rb:25:in `render'' > > app/controllers/user_controller.rb:187:in `generate_blank'' > > app/controllers/user_controller.rb:8:in `login'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in > `send'' > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in > `perform_action_without_filters'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in > `perform_action_without_benchmark'' > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > `perform_action_without_rescue'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > `measure'' > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > `perform_action_without_rescue'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in > `perform_action'' > > > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in > `send'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in > `process'' > > /usr/lib/ruby/gems/1.8/gems/rails- > > 0.13.1/lib/dispatcher.rb:32:in `dispatch'' > > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in > `process_request'' > > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in > `process!'' > > /usr/lib/ruby/gems/1.8/gems/rails- > > 0.13.1/lib/fcgi_handler.rb:55:in `each_cgi'' > > /usr/lib/site_ruby/1.8/fcgi.rb:597:in `session'' > > /usr/lib/site_ruby/1.8/fcgi.rb:104:in `each_request'' > > /usr/lib/site_ruby/1.8/fcgi.rb:36:in `each'' > > /usr/lib/site_ruby/1.8/fcgi.rb:597:in `each_cgi'' > > > > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `process!'' > > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in > `process!'' > > /home/ramin/projects/rails/sandbox/yaram/public/dispatch.fcgi:24 > > > > > > > > Notice how the stack trace mentions lib/localization.rb line 1, which > > is the the line that is calling ''iconv''. i wonder if its related to > > that. I do know that before I upgraded to 0.13.x, my app was working > > fine with the SLG. Any ideas? > > > > -- > > - Ramin > > http://www.getintothis.com/blog > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Richard Piacentini
2005-Jul-13 21:59 UTC
Re: uninitialized constant CONFIG - Salted Login Gen.
before upgrading to 0.13 i had that in one of my views: ... <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%CONFIG[:default_language] %>" lang="<%= CONFIG[:default_language] %>"> ... after upgrading this blows with the following error message: NameError in Admin/interface#index Showing /admin/interface/index.rhtml where line #4 raised: uninitialized constant CONFIG but works if i replace CONFIG[:default_language] by Localization::CONFIG[:default_language] hth, Richard> I''m sorry, what do you mean in your view? Where exactly do I have to > modify the CONFIG and change it to Localization::CONFIG. The only > places where I see CONFIG defined or used are within the > lib/localization.rb and > config/environments/localization_environment.rb files. > > I appreciate the help, > Ramin >
Hmmm.. I don''t have any references to CONFIG in any of my views .. the only places are in the configs and in the lib files. I''ll keep looking into this .. On 7/13/05, Richard Piacentini <ricp-nFa1xD8ZTHc@public.gmane.org> wrote:> > before upgrading to 0.13 i had that in one of my views: > > ... > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%> CONFIG[:default_language] %>" lang="<%= CONFIG[:default_language] %>"> > ... > > after upgrading this blows with the following error message: > > NameError in Admin/interface#index > Showing /admin/interface/index.rhtml where line #4 raised: > > uninitialized constant CONFIG > > but works if i replace CONFIG[:default_language] by > Localization::CONFIG[:default_language] > > hth, > > Richard > > > I''m sorry, what do you mean in your view? Where exactly do I have to > > modify the CONFIG and change it to Localization::CONFIG. The only > > places where I see CONFIG defined or used are within the > > lib/localization.rb and > > config/environments/localization_environment.rb files. > > > > I appreciate the help, > > Ramin > > > > > >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails