Hello, all-- I am a newcomer to Rails; I''ve done a bit with Ruby before, but that was a couple of years ago and I''ve forgotten a lot. Anyway, I''m trying to work through "Rolling with Ruby on Rails," but I am getting stuck. First of all, I have Rails 0.9.1 on Linux, with Apache 2.0 and MySQL 4.1.14. I think the basic installation is OK: the "Congratulations, you''re on Rails" page comes up, and the "Hello, World" application works fine. But when I try the cookbook example, I keep running into this error. Actually, at first I was trying to more-or-less follow the tutorial using the actual app I want to develop; I thought the error might have been due to some problem with my database design, but I get the same thing when I build the cookbook app as written. When I try to access http://localhost/recipe/list, I get ActionController::RoutingError in Recipe#list Showing /recipe/list.rhtml where line #15 raised: No url can be generated for the hash {:id=>"1", :action=>"show"} [see below for full output] Same thing with minor variations for http://localhost/recipe/new. A Google search didn''t turn up anything that looked directly related. I would greatly appreciate any ideas of the cause or debugging hints. Thanks! Matt Gushee Englewood, CO, USA ... and here''s the full error page: ActionController::RoutingError in Recipe#list Showing /recipe/list.rhtml where line #15 raised: No url can be generated for the hash {:id=>"1", :action=>"show"} Extracted source (around line #15): 12: <% for column in Recipe.content_columns %> 13: <td><%=h recipe[column.name] %></td> 14: <% end %> 15: <td><%= link_to ''Show'', :action => ''show'', :id => recipe.id %></td> 16: <td><%= link_to ''Edit'', :action => ''edit'', :id => recipe.id %></td> 17: <td><%= link_to ''Destroy'', :action => ''destroy'', :id => recipe.id %></td> 18: </tr> Show template trace generated_code/routing/generation.rb:5:in `generate_default_path'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:398:in `generate_default_path'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:394:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:394:in `generate_path'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:384:in `generate'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/url_rewriter.rb:38:in `rewrite_path'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/url_rewriter.rb:11:in `rewrite'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:440:in `url_for'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/helpers/url_helper.rb:12:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/helpers/url_helper.rb:12:in `url_for'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/helpers/url_helper.rb:31:in `link_to'' (erb):15:in `evaluate_locals'' (erb):10:in `each'' (erb):10: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'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:757: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/actionpack-1.9.1/lib/action_controller/base.rb:288:in `process'' /usr/lib/ruby/gems/1.8/gems/rails-0.9.1/lib/dispatcher.rb:39:in `dispatch'' /public/dispatch.cgi:10 Request Parameters: None Show session dump --- flash: !ruby/hash:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
You need to update your rails install. The current version is 0.13.1 and you are using 0.91. The rolling on rails tutorial used 0.12.something if I recall correctly. I think if you update rails then you wont run into this problem. But if you still get the same thing after updating then call for help and we''ll try to help you out. HTH -Ezra On Sep 14, 2005, at 8:39 PM, Matt Gushee wrote:> Hello, all-- > > I am a newcomer to Rails; I''ve done a bit with Ruby before, but > that was a couple of years ago and I''ve forgotten a lot. Anyway, > I''m trying to work through "Rolling with Ruby on Rails," but I am > getting stuck. > > First of all, I have Rails 0.9.1 on Linux, with Apache 2.0 and > MySQL 4.1.14. I think the basic installation is OK: the > "Congratulations, you''re on Rails" page comes up, and the "Hello, > World" application works fine. But when I try the cookbook example, > I keep running into this error. Actually, at first I was trying to > more-or-less follow the tutorial using the actual app I want to > develop; I thought the error might have been due to some problem > with my database design, but I get the same thing when I build the > cookbook app as written. > > When I try to access http://localhost/recipe/list, I get > > ActionController::RoutingError in Recipe#list > > Showing /recipe/list.rhtml where line #15 raised: > No url can be generated for the hash {:id=>"1", :action=>"show"} > > [see below for full output] > > Same thing with minor variations for http://localhost/recipe/new. A > Google search didn''t turn up anything that looked directly related. > I would greatly appreciate any ideas of the cause or debugging > hints. Thanks! > > Matt Gushee > Englewood, CO, USA > > ... and here''s the full error page: > > ActionController::RoutingError in Recipe#list > > Showing /recipe/list.rhtml where line #15 raised: > > No url can be generated for the hash {:id=>"1", :action=>"show"} > > Extracted source (around line #15): > > 12: <% for column in Recipe.content_columns %> > 13: <td><%=h recipe[column.name] %></td> > 14: <% end %> > 15: <td><%= link_to ''Show'', :action => ''show'', :id => recipe.id > %></td> > 16: <td><%= link_to ''Edit'', :action => ''edit'', :id => recipe.id > %></td> > 17: <td><%= link_to ''Destroy'', :action => ''destroy'', :id => > recipe.id %></td> > 18: </tr> > > Show template trace > > generated_code/routing/generation.rb:5:in `generate_default_path'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ > routing.rb:398:in `generate_default_path'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ > routing.rb:394:in `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ > routing.rb:394:in `generate_path'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ > routing.rb:384:in `generate'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ > url_rewriter.rb:38:in `rewrite_path'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ > url_rewriter.rb:11:in `rewrite'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ > base.rb:440:in `url_for'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/ > helpers/url_helper.rb:12:in `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/ > helpers/url_helper.rb:12:in `url_for'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/ > helpers/url_helper.rb:31:in `link_to'' > (erb):15:in `evaluate_locals'' > (erb):10:in `each'' > (erb):10: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'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ > base.rb:757: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/actionpack-1.9.1/lib/action_controller/ > base.rb:288:in `process'' > /usr/lib/ruby/gems/1.8/gems/rails-0.9.1/lib/dispatcher.rb:39:in > `dispatch'' > /public/dispatch.cgi:10 > > > > Request > > Parameters: None > > Show session dump > > --- > flash: !ruby/hash:ActionController::Flash::FlashHash {} > > Response > Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-Ezra Zygmuntowicz WebMaster Yakima Herald-Republic Newspaper ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org 509-577-7732
It looks fine to me (the code, not the error) Do you get the same error using webrick? (well, you should, but its worth checking) Do you get the same error for any links? Try <%= link_to("test", :action=>"show", :id=>"1", :controller=>"recipe") %> On 9/15/05, Matt Gushee <matt-Si+bNIPoxUqsTnJN9+BGXg@public.gmane.org> wrote:> > Hello, all-- > > I am a newcomer to Rails; I''ve done a bit with Ruby before, but that was > a couple of years ago and I''ve forgotten a lot. Anyway, I''m trying to > work through "Rolling with Ruby on Rails," but I am getting stuck. > > First of all, I have Rails 0.9.1 on Linux, with Apache 2.0 and MySQL > 4.1.14. I think the basic installation is OK: the "Congratulations, > you''re on Rails" page comes up, and the "Hello, World" application works > fine. But when I try the cookbook example, I keep running into this > error. Actually, at first I was trying to more-or-less follow the > tutorial using the actual app I want to develop; I thought the error > might have been due to some problem with my database design, but I get > the same thing when I build the cookbook app as written. > > When I try to access http://localhost/recipe/list, I get > > ActionController::RoutingError in Recipe#list > > Showing /recipe/list.rhtml where line #15 raised: > No url can be generated for the hash {:id=>"1", :action=>"show"} > > [see below for full output] > > Same thing with minor variations for http://localhost/recipe/new. A > Google search didn''t turn up anything that looked directly related. I > would greatly appreciate any ideas of the cause or debugging hints. > Thanks! > > Matt Gushee > Englewood, CO, USA > > ... and here''s the full error page: > > ActionController::RoutingError in Recipe#list > > Showing /recipe/list.rhtml where line #15 raised: > > No url can be generated for the hash {:id=>"1", :action=>"show"} > > Extracted source (around line #15): > > 12: <% for column in Recipe.content_columns %> > 13: <td><%=h recipe[column.name <http://column.name>] %></td> > 14: <% end %> > 15: <td><%= link_to ''Show'', :action => ''show'', :id => recipe.id<http://recipe.id>%></td> > 16: <td><%= link_to ''Edit'', :action => ''edit'', :id => recipe.id<http://recipe.id>%></td> > 17: <td><%= link_to ''Destroy'', :action => ''destroy'', :id => > recipe.id <http://recipe.id> %></td> > 18: </tr> > > Show template trace > > generated_code/routing/generation.rb:5:in `generate_default_path'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/routing.rb:398:in > `generate_default_path'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/routing.rb:394:in > `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/routing.rb:394:in > `generate_path'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/routing.rb:384:in > `generate'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/url_rewriter.rb:38:in > `rewrite_path'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/url_rewriter.rb:11:in > `rewrite'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/base.rb:440:in > `url_for'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_view/helpers/url_helper.rb:12:in > `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_view/helpers/url_helper.rb:12:in > `url_for'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_view/helpers/url_helper.rb:31:in > `link_to'' > (erb):15:in `evaluate_locals'' > (erb):10:in `each'' > (erb):10: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'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/base.rb:757: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/actionpack-1.9.1 > /lib/action_controller/base.rb:288:in > `process'' > /usr/lib/ruby/gems/1.8/gems/rails-0.9.1/lib/dispatcher.rb:39:in `dispatch'' > /public/dispatch.cgi:10 > > > > Request > > Parameters: None > > Show session dump > > --- > flash: !ruby/hash:ActionController::Flash::FlashHash {} > > Response > Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Ezra Zygmuntowicz wrote:> You need to update your rails install. The current version is 0.13.1 > and you are using 0.91.Oh, you''re right. I tried Rails once before, evidently when 0.9.1 was current. But I figured I was probably out of date, so when I decided to try Rails again, the first thing I did was run ''gem update'' Any idea why that didn''t work? -- Matt Gushee Englewood, CO, USA
Matt Gushee wrote:> Ezra Zygmuntowicz wrote: > >> You need to update your rails install. The current version is 0.13.1 >> and you are using 0.91. > > > Oh, you''re right. I tried Rails once before, evidently when 0.9.1 was > current. But I figured I was probably out of date, so when I decided to > try Rails again, the first thing I did was run > > ''gem update'' > > Any idea why that didn''t work?On the off chance I might have been imagining I ran the update, I just did it again. Here''s the output: # gem update Upgrading installed gems ... Updating Gem source index for: http://gems.rubyforge.org Attempting remote upgrade of rails Attempting remote installation of ''rails'' Successfully installed rails_analyzer_tools, version 1.0.0 Installing RDoc documentation for rails_analyzer_tools-1.0.0... All gems up to date Yet I still have rails-0.9.1. Is there something I don''t understand about how to use gems? -- Matt Gushee Englewood, CO, USA
On Sep 15, 2005, at 4:22 AM, Matt Gushee wrote:> Matt Gushee wrote: > >> Ezra Zygmuntowicz wrote: >> >>> You need to update your rails install. The current version is >>> 0.13.1 and you are using 0.91. >>> >> Oh, you''re right. I tried Rails once before, evidently when 0.9.1 >> was current. But I figured I was probably out of date, so when I >> decided to try Rails again, the first thing I did was run >> ''gem update'' >> Any idea why that didn''t work? >> > > On the off chance I might have been imagining I ran the update, I > just did it again. Here''s the output: > > # gem update > Upgrading installed gems ... > Updating Gem source index for: http://gems.rubyforge.org > Attempting remote upgrade of rails > Attempting remote installation of ''rails'' > Successfully installed rails_analyzer_tools, version 1.0.0 > Installing RDoc documentation for rails_analyzer_tools-1.0.0... > All gems up to date > > Yet I still have rails-0.9.1. Is there something I don''t understand > about how to use gems?Try this command: sudo gem install --version ''0.13.1'' rails --include-dependencies That will get around the rails_analyzer_tolls conflict HTH- -Ezra> > -- > Matt Gushee > Englewood, CO, USA > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Ezra Zygmuntowicz wrote:> Try this command: > > sudo gem install --version ''0.13.1'' rails --include-dependencies > > That will get around the rails_analyzer_tolls conflictActually, the problem was that my rubygems version was too old to install the latest rails. Once I figured that out, everything was fine. Thanks for your patience with my dumb questions. -- Matt Gushee Englewood, CO, USA