ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Rolling with Ruby on Rails
Subject:   Error after generating Recipe controller
Date:   2005-10-15 13:37:32
From:   daveisaacs
After the step "ruby script\generate controller Recipe", when I go to http://127.0.0.1:3000/recipe/new I get the following error:


---start error---
ActionController::RoutingError in Recipe#new


Showing c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/templates/scaffolds/new.rhtml where line #4 raised:


No url can be generated for the hash {:id=>"", :action=>"create"}


Extracted source (around line #4):


1: <h1>New <%= @scaffold_singular_name %></h1>
2:
3: <%= error_messages_for(@scaffold_singular_name) %>
4: <%= form(@scaffold_singular_name, :action => "create#{@scaffold_suffix}") %>
5:
6: <%= link_to "Back", :action => "list#{@scaffold_suffix}" %>
---end error---


Any ideas?


Thanks


Dave I


1 to 1 of 1
  1. Curt Hibbs photo Error after generating Recipe controller
    2005-10-15 16:01:40  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    • Error after generating Recipe controller
      2005-10-15 19:30:55  daveisaacs [View]

      • Error after generating Recipe controller
        2005-10-15 20:06:05  daveisaacs [View]

        • Error after generating Recipe controller
          2005-11-05 19:52:15  jeffvott [View]

1 to 1 of 1