Alisson Ffff
2009-May-20 13:34 UTC
ctionView::TemplateError (undefined method `start_form_tag''
I upgrade my version of ruby on rails And my SO Free BSD was working with Ruby 1.8 + 1.2.6 and now Mandriva Linux with Ruby 1.8 + Rails 2.1.1 it''s not working ERROR: Processing LoginController#fazer_login (for 192.168.3.210 at 2009-05-20 09:20:53) [GET] Session ID: BAh7BzoNYWRtaW5faWQwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpG bGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--3bd311895e76970821167fa81e5aec46e3ec581d Parameters: {"action"=>"fazer_login", "controller"=>"login"} SQL (0.000110) SET SQL_AUTO_IS_NULL=0 Admin Columns (0.000782) SHOW FIELDS FROM `admins` Rendering template within layouts/layout_login Rendering login/fazer_login ActionView::TemplateError (undefined method `start_form_tag'' for #<ActionView::Base:0x7f6ad4e78510>) on line #1 of login/fazer_login.rhtml: 1: <%= start_form_tag :action => ''fazer_login'' %><style type="text/css"> 2: <!-- 3: body,td,th { 4: font-family: Verdana, Arial, Helvetica, sans-serif; app/views/login/fazer_login.rhtml:1:in `_run_erb_47app47views47login47fazer_login46rhtml'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:342:in `send'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:342:in `execute'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template_handlers/compilable.rb:29:in `send'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template_handlers/compilable.rb:29:in `render'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template.rb:35:in `render'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template.rb:22:in `render_template'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:248:in `render_file'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1112:in `render_for_file'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:845:in `render_with_no_layout'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/layout.rb:251:in `render_without_benchmark'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:51:in `render'' /usr/lib64/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/core_ext/benchmark.rb:8:in `realtime'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:51:in `render'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1161:in `default_render'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1167:in `perform_action_without_filters'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:579:in `call_filters'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/query_cache.rb:8:in `cache'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:60:in `perform_action'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in `send'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in `process_without_filters'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:568:in `process_without_session_management_support'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/session_management.rb:130:in `process'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:389:in `process'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:149:in `handle_request'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in `dispatch'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `synchronize'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `dispatch'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in `dispatch'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:45:in `process_request'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_request_handler.rb:203:in `main_loop'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:340:in `start_request_handler'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:298:in `handle_spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/utils.rb:181:in `safe_fork'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:296:in `handle_spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `__send__'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `main_loop'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:154:in `start'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:192:in `start'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:257:in `spawn_rails_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:251:in `spawn_rails_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:250:in `spawn_rails_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:282:in `handle_spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `__send__'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `main_loop'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/bin/passenger-spawn-server:61 Rendering /var/www/SGR/public/500.html (500 Internal Server Error) Attachments: http://www.ruby-forum.com/attachment/3715/erro_ruby.txt -- Posted via http://www.ruby-forum.com/.
Colin Law
2009-May-20 14:01 UTC
Re: ctionView::TemplateError (undefined method `start_form_tag''
A quick google search tells me that start_form_tag was deprecated in rails 1.2 and removed in 2.0. You will have to use form_tag or form_for Colin 2009/5/20 Alisson Ffff <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>> > I upgrade my version of ruby on rails And my SO > > Free BSD was working with Ruby 1.8 + 1.2.6 > > and now Mandriva Linux with Ruby 1.8 + Rails 2.1.1 it''s not working > > ERROR: > > Processing LoginController#fazer_login (for 192.168.3.210 at 2009-05-20 > 09:20:53) [GET] > Session ID: > BAh7BzoNYWRtaW5faWQwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpG > > bGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--3bd311895e76970821167fa81e5aec46e3ec581d > Parameters: {"action"=>"fazer_login", "controller"=>"login"} > SQL (0.000110) SET SQL_AUTO_IS_NULL=0 > Admin Columns (0.000782) SHOW FIELDS FROM `admins` > Rendering template within layouts/layout_login > Rendering login/fazer_login > > > ActionView::TemplateError (undefined method `start_form_tag'' for > #<ActionView::Base:0x7f6ad4e78510>) on line #1 of > login/fazer_login.rhtml: > 1: <%= start_form_tag :action => ''fazer_login'' %><style type="text/css"> > 2: <!-- > 3: body,td,th { > 4: font-family: Verdana, Arial, Helvetica, sans-serif; > > app/views/login/fazer_login.rhtml:1:in > `_run_erb_47app47views47login47fazer_login46rhtml'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:342:in > `send'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:342:in > `execute'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template_handlers/compilable.rb:29:in > `send'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template_handlers/compilable.rb:29:in > `render'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template.rb:35:in > `render'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template.rb:22:in > `render_template'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:248:in > `render_file'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1112:in > `render_for_file'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:845:in > `render_with_no_layout'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/layout.rb:251:in > `render_without_benchmark'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:51:in > `render'' > > /usr/lib64/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/core_ext/benchmark.rb:8:in > `realtime'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:51:in > `render'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1161:in > `default_render'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1167:in > `perform_action_without_filters'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:579:in > `call_filters'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:572:in > `perform_action_without_benchmark'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue'' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/rescue.rb:201:in > `perform_action_without_caching'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:13:in > `passenger_orig_perform_action'' > > /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache'' > > /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/query_cache.rb:8:in > `cache'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:12:in > `passenger_orig_perform_action'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:60:in > `perform_action'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in > `send'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in > `process_without_filters'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:568:in > `process_without_session_management_support'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/session_management.rb:130:in > `process'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:389:in > `process'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:149:in > `handle_request'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in > `dispatch'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in > `synchronize'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in > `dispatch'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:120:in > `dispatch_cgi'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in > `dispatch'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:45:in > `process_request'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_request_handler.rb:203:in > `main_loop'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:340:in > `start_request_handler'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:298:in > `handle_spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/utils.rb:181:in > `safe_fork'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:296:in > `handle_spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `__send__'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `main_loop'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in > `start_synchronously'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:154:in > `start'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:192:in > `start'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:257:in > `spawn_rails_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:126:in > `lookup_or_add'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:251:in > `spawn_rails_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:80:in > `synchronize'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:79:in > `synchronize'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:250:in > `spawn_rails_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:153:in > `spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:282:in > `handle_spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `__send__'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `main_loop'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in > `start_synchronously'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/bin/passenger-spawn-server:61 > > Rendering /var/www/SGR/public/500.html (500 Internal Server Error) > > Attachments: > http://www.ruby-forum.com/attachment/3715/erro_ruby.txt > > -- > 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 -~----------~----~----~----~------~----~------~--~---
Alisson Ffff
2009-May-20 14:49 UTC
Re: ctionView::TemplateError (undefined method `start_form_tag''
Colin Law wrote:> A quick google search tells me that start_form_tag was deprecated in > rails > 1.2 and removed in 2.0. You will have to use form_tag or form_for > > Colin > > 2009/5/20 Alisson Ffff <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>thank you! now is working but! I Have another error: Processing LoginController#fazer_login (for 192.168.3.210 at 2009-05-20 10:45:08) [GET] Session ID: BAh7BzoNYWRtaW5faWQwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpG bGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--3bd311895e76970821167fa81e5aec46e3ec581d Parameters: {"action"=>"fazer_login", "controller"=>"login"} Rendering template within layouts/layout_login Rendering login/fazer_login Rendered layouts/_rodape (0.00001) NoMethodError (undefined method `[]='' for nil:NilClass): /app/controllers/application.rb:25:in `set_charset'' /usr/lib64/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/callbacks.rb:173:in `send'' /usr/lib64/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/callbacks.rb:173:in `evaluate_method'' /usr/lib64/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/callbacks.rb:161:in `call'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:624:in `run_after_filters'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:581:in `call_filters'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/query_cache.rb:8:in `cache'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:60:in `perform_action'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in `send'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in `process_without_filters'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:568:in `process_without_session_management_support'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/session_management.rb:130:in `process'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:389:in `process'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:149:in `handle_request'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in `dispatch'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `synchronize'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `dispatch'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in `dispatch'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:45:in `process_request'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_request_handler.rb:203:in `main_loop'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:340:in `start_request_handler'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:298:in `handle_spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/utils.rb:181:in `safe_fork'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:296:in `handle_spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `__send__'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `main_loop'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:154:in `start'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:192:in `start'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:257:in `spawn_rails_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:251:in `spawn_rails_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:250:in `spawn_rails_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:282:in `handle_spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `__send__'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `main_loop'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/bin/passenger-spawn-server:61 Rendering /var/www/SGR/public/500.html (500 Internal Server Error) Attachments: http://www.ruby-forum.com/attachment/3717/erro_ruby2.txt -- Posted via http://www.ruby-forum.com/.
Colin Law
2009-May-20 16:17 UTC
Re: ctionView::TemplateError (undefined method `start_form_tag''
It looks like you have a problem at application.rb:25. 2009/5/20 Alisson Ffff <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>> > Colin Law wrote: > > A quick google search tells me that start_form_tag was deprecated in > > rails > > 1.2 and removed in 2.0. You will have to use form_tag or form_for > > > > Colin > > > > 2009/5/20 Alisson Ffff <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > thank you! now is working > > but! I Have another error: > > Processing LoginController#fazer_login (for 192.168.3.210 at 2009-05-20 > 10:45:08) [GET] > Session ID: > BAh7BzoNYWRtaW5faWQwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpG > > bGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--3bd311895e76970821167fa81e5aec46e3ec581d > Parameters: {"action"=>"fazer_login", "controller"=>"login"} > Rendering template within layouts/layout_login > Rendering login/fazer_login > Rendered layouts/_rodape (0.00001) > > > NoMethodError (undefined method `[]='' for nil:NilClass): > /app/controllers/application.rb:25:in `set_charset'' > > /usr/lib64/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/callbacks.rb:173:in > `send'' > > /usr/lib64/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/callbacks.rb:173:in > `evaluate_method'' > > /usr/lib64/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/callbacks.rb:161:in > `call'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:624:in > `run_after_filters'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:581:in > `call_filters'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:572:in > `perform_action_without_benchmark'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue'' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/rescue.rb:201:in > `perform_action_without_caching'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:13:in > `passenger_orig_perform_action'' > > /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache'' > > /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/query_cache.rb:8:in > `cache'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:12:in > `passenger_orig_perform_action'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:60:in > `perform_action'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in > `send'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in > `process_without_filters'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:568:in > `process_without_session_management_support'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/session_management.rb:130:in > `process'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:389:in > `process'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:149:in > `handle_request'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in > `dispatch'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in > `synchronize'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in > `dispatch'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:120:in > `dispatch_cgi'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in > `dispatch'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:45:in > `process_request'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_request_handler.rb:203:in > `main_loop'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:340:in > `start_request_handler'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:298:in > `handle_spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/utils.rb:181:in > `safe_fork'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:296:in > `handle_spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `__send__'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `main_loop'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in > `start_synchronously'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:154:in > `start'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:192:in > `start'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:257:in > `spawn_rails_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:126:in > `lookup_or_add'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:251:in > `spawn_rails_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:80:in > `synchronize'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:79:in > `synchronize'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:250:in > `spawn_rails_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:153:in > `spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:282:in > `handle_spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `__send__'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `main_loop'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in > `start_synchronously'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/bin/passenger-spawn-server:61 > > Rendering /var/www/SGR/public/500.html (500 Internal Server Error) > > Attachments: > http://www.ruby-forum.com/attachment/3717/erro_ruby2.txt > > -- > 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 -~----------~----~----~----~------~----~------~--~---
Alisson Ffff
2009-May-20 16:59 UTC
Re: ctionView::TemplateError (undefined method `start_form_tag''
Colin Law wrote:> It looks like you have a problem at application.rb:25. > > 2009/5/20 Alisson Ffff <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>yes /app/controllers/application.rb:25:in `set_charset'' on function ''set_charset'' this program isn''t working after I upgrade de OS and Ruby on Rails -- Posted via http://www.ruby-forum.com/.
Colin Law
2009-May-20 19:26 UTC
Re: ctionView::TemplateError (undefined method `start_form_tag''
You have done ''rake rails:update'' haven''t you? You should not have an application.rb any more, it should be application_controller.rb. If I remember correctly rake rails:update should have renamed it as well as updating boot and the scripts and so on. Colin 2009/5/20 Alisson Ffff <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>> > Colin Law wrote: > > It looks like you have a problem at application.rb:25. > > > > 2009/5/20 Alisson Ffff <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > yes > > /app/controllers/application.rb:25:in `set_charset'' > > > on function ''set_charset'' > > this program isn''t working after I upgrade de OS and Ruby on Rails > -- > 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 -~----------~----~----~----~------~----~------~--~---
Alisson Ffff
2009-May-21 12:20 UTC
Re: ctionView::TemplateError (undefined method `start_form_tag''
Colin Law wrote:> You have done ''rake rails:update'' haven''t you? You should not have an > application.rb any more, it should be application_controller.rb. If I > remember correctly rake rails:update should have renamed it as well as > updating boot and the scripts and so on. > > Colin > > 2009/5/20 Alisson Ffff <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>ok! now I get a different error Processing UsuariosController#listar_usuarios (for 192.168.3.210 at 2009-05-21 08:11:49) [GET] Session ID: BAh7BzoNYWRtaW5faWRpFyIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6 Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--0ebbf69310f4e21c0683a22436ebbf4d920ddcc6 Parameters: {"action"=>"listar_usuarios", "controller"=>"usuarios"} NoMethodError (undefined method `paginate'' for #<UsuariosController:0x7fab4d8a90a8>): /app/controllers/usuarios_controller.rb:11:in `listar_usuarios'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1166:in `send'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1166:in `perform_action_without_filters'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:579:in `call_filters'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/query_cache.rb:8:in `cache'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:60:in `perform_action'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in `send'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in `process_without_filters'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:568:in `process_without_session_management_support'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/session_management.rb:130:in `process'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:389:in `process'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:149:in `handle_request'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in `dispatch'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `synchronize'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `dispatch'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in `dispatch'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:45:in `process_request'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_request_handler.rb:203:in `main_loop'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:340:in `start_request_handler'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:298:in `handle_spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/utils.rb:181:in `safe_fork'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:296:in `handle_spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `__send__'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `main_loop'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:154:in `start'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:192:in `start'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:257:in `spawn_rails_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:251:in `spawn_rails_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:250:in `spawn_rails_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:282:in `handle_spawn_application'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `__send__'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in `main_loop'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously'' /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/bin/passenger-spawn-server:61 -- Posted via http://www.ruby-forum.com/.
Ar Chron
2009-May-21 12:31 UTC
Re: ctionView::TemplateError (undefined method `start_form_tag''
Generally speaking, you need to read through what the changes are to Rails since you''ve upgraded versions... Start at your old version, and check the changelog for each version up to the one you are on now... Otherwise, this "Okay, now this... what do I do?" could go on for quite some time. What you could do is read the changelogs... -- Posted via http://www.ruby-forum.com/.
Colin Law
2009-May-21 13:12 UTC
Re: ctionView::TemplateError (undefined method `start_form_tag''
2009/5/21 Alisson Ffff <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>> > Colin Law wrote: > > You have done ''rake rails:update'' haven''t you? You should not have an > > application.rb any more, it should be application_controller.rb. If I > > remember correctly rake rails:update should have renamed it as well as > > updating boot and the scripts and so on. > > > > Colin > > > > 2009/5/20 Alisson Ffff <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > ok! > > now I get a different error > > Processing UsuariosController#listar_usuarios (for 192.168.3.210 at > 2009-05-21 08:11:49) [GET] > Session ID: > BAh7BzoNYWRtaW5faWRpFyIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6 > > Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--0ebbf69310f4e21c0683a22436ebbf4d920ddcc6 > Parameters: {"action"=>"listar_usuarios", "controller"=>"usuarios"} > > > NoMethodError (undefined method `paginate'' for > #<UsuariosController:0x7fab4d8a90a8>):See http://www.sajithmr.com/pagination-in-ruby-on-rails/> > /app/controllers/usuarios_controller.rb:11:in `listar_usuarios'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1166:in > `send'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1166:in > `perform_action_without_filters'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:579:in > `call_filters'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:572:in > `perform_action_without_benchmark'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue'' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/rescue.rb:201:in > `perform_action_without_caching'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:13:in > `passenger_orig_perform_action'' > > /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache'' > > /usr/lib64/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/query_cache.rb:8:in > `cache'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:12:in > `passenger_orig_perform_action'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:60:in > `perform_action'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in > `send'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in > `process_without_filters'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:568:in > `process_without_session_management_support'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/session_management.rb:130:in > `process'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:389:in > `process'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:149:in > `handle_request'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in > `dispatch'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in > `synchronize'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in > `dispatch'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:120:in > `dispatch_cgi'' > > /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in > `dispatch'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/request_handler.rb:45:in > `process_request'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_request_handler.rb:203:in > `main_loop'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:340:in > `start_request_handler'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:298:in > `handle_spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/utils.rb:181:in > `safe_fork'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:296:in > `handle_spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `__send__'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `main_loop'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in > `start_synchronously'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:154:in > `start'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:192:in > `start'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:257:in > `spawn_rails_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:126:in > `lookup_or_add'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:251:in > `spawn_rails_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:80:in > `synchronize'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server_collection.rb:79:in > `synchronize'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:250:in > `spawn_rails_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:153:in > `spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/spawn_manager.rb:282:in > `handle_spawn_application'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `__send__'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in > `main_loop'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in > `start_synchronously'' > > /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/bin/passenger-spawn-server:61 > > -- > 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 -~----------~----~----~----~------~----~------~--~---