# No route matches controller - scaffold generated code

**URL:** <https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706>\
**Category:** rubyonrails-talk\
**Created:** [November 14, 2010, 11:38pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706 "2010-11-14T23:38:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobtr](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@bobtr](https://discuss.rubyonrails.org/u/bobtr)\
**Post date:** [November 14, 2010, 11:38pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/1 "2010-11-14T23:38:35Z")

</div>

I am new to RoR, but I have been struggling with a mysterious error for days. I am using a standard installation approach on a clean ubuntu system

I created a very simple application, just reading from a mysql table called dogs. The application was totally generated with scaffold.

rails server -p 3001 #Starts server

When I run, I get the error "No route matches controller" &nbsp;&nbsp;&nbsp;[http://localhost:3001/dogs](http://localhost:3001/dogs)

If I remove all the link\_to cells, the application runs and returns data.

If I put back just one line " \<td\>\<%= link\_to 'Show', dog %\>\</td\>",

I still get the error complaining about the ":action=\>"destroy" route.

== scaffold ==

rails g scaffold dog dog\_id:integer color:string gender:string dog\_name:string --skip-migration

===========Generated Source Code=============

\<% @dogs.each do |dog| %\> &nbsp;&nbsp;\<tr\> &nbsp;&nbsp;&nbsp;&nbsp;\<td\>\<%= dog.dog\_id %\>\</td\> &nbsp;&nbsp;&nbsp;&nbsp;\<td\>\<%= dog.color %\>\</td\> &nbsp;&nbsp;&nbsp;&nbsp;\<td\>\<%= dog.gender %\>\</td\> &nbsp;&nbsp;&nbsp;&nbsp;\<td\>\<%= dog.dog\_name %\>\</td\> &nbsp;&nbsp;&nbsp;&nbsp;\<td\>\<%= link\_to 'Show', dog %\>\</td\> &nbsp;&nbsp;&nbsp;&nbsp;\<td\>\<%= link\_to 'Edit', edit\_dog\_path(dog) %\>\</td\> &nbsp;&nbsp;&nbsp;&nbsp;\<td\>\<%= link\_to 'Destroy', dog, :confirm =\> 'Are you sure?', :method =\> :delete %\>\</td\> &nbsp;&nbsp;\</tr\> \<% end %\>

========= ERROR =========== ## No route matches controller ############ Showing /home/ruby/hub2/app/views/dogs/index.html.erb where line #20 raised: No route matches {:controller=\>"dogs", :action=\>"destroy", :id=\>#\<Dog dog\_id: 1, color: "Golden", gender: "Female", dog\_name: "Daisy"\>}

Extracted source (around line #20):

17: \<td\>\<%= dog.color %\>\</td\> 18: \<td\>\<%= dog.gender %\>\</td\> 19: \<td\>\<%= dog.dog\_name %\>\</td\> 20: \<td\>\<%= link\_to 'Show', dog %\>\</td\> 21: \<td\>\<%= link\_to 'Edit', edit\_dog\_path(dog) %\>\</td\> 22: \<td\>\<%= link\_to 'Destroy', dog, :confirm =\> 'Are you sure?', :method =\> :delete %\>\</td\> 23: \</tr\>

========== routes.rb ============== Hub2::Application.routes.draw do &nbsp;&nbsp;resources :dogs end

========= rake routes ============ root@ubu-bob:/home/ruby/hub2# rake routes (in /home/ruby/hub2) &nbsp;&nbsp;&nbsp;&nbsp;dogs GET /dogs(.:format) {:controller=\>"dogs", :action=\>"index"} &nbsp;&nbsp;&nbsp;&nbsp;dogs POST /dogs(.:format) {:controller=\>"dogs", :action=\>"create"} new\_dog GET /dogs/new(.:format) {:controller=\>"dogs", :action=\>"new"} edit\_dog GET /dogs/:id/edit(.:format) {:controller=\>"dogs", :action=\>"edit"} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dog GET /dogs/:id(.:format) {:controller=\>"dogs", :action=\>"show"} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dog PUT /dogs/:id(.:format) {:controller=\>"dogs", :action=\>"update"} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dog DELETE /dogs/:id(.:format) {:controller=\>"dogs", :action=\>"destroy"}

=== Installation === I followed these instructions on a brand new and fully updated version of ubuntu 10.04

[http://castilho.biz/blog/2010/05/08/how-to-install-ruby-on-rails-on-ubuntu-10-04-lucid-lynx/](http://castilho.biz/blog/2010/05/08/how-to-install-ruby-on-rails-on-ubuntu-10-04-lucid-lynx/) How to install Ruby on Rails on Ubuntu 10.04 Lucid Lynx &nbsp;&nbsp;&nbsp;&nbsp;Follow these steps to have a fresh installation of Ruby on Rails in Ubuntu 10.04:

&nbsp;&nbsp;sudo su &nbsp;&nbsp;apt-get -y install build-essential &nbsp;&nbsp;apt-get -y install ruby rdoc libopenssl-ruby &nbsp;&nbsp;wget [http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz](http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz) &nbsp;&nbsp;tar zxvf rubygems-1.3.7.tgz &nbsp;&nbsp;cd rubygems-1.3.7 &nbsp;&nbsp;ruby setup.rb &nbsp;&nbsp;ln -s /usr/bin/gem1.8 /usr/local/bin/gem &nbsp;&nbsp;gem install rails ;# (takes awhile with no output.. )

#Installing MySQL gem:

&nbsp;&nbsp;apt-get -y install ruby-dev libmysql-ruby libmysqlclient-dev &nbsp;&nbsp;gem install mysql

---

<div class="post-metadata">

**Author:** ![chris5](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@chris5](https://discuss.rubyonrails.org/u/chris5)\
**Post date:** [November 15, 2010, 6:49pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/2 "2010-11-15T18:49:07Z")

</div>

Since you put --skip-migration, could you post table structure? Maybe missing an ID or some other field? Reserved word bug? Sometimes I've had to restart ruby server when working with routes.rb, but shouldn't be necessary with a fresh scaffold. Problem does seem related to routes.rb, I bet using:action controller and id in link\_to() would work

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [November 15, 2010, 6:53pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/3 "2010-11-15T18:53:34Z")

</div>

chris wrote in post #961631:

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [November 15, 2010, 7:20pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/4 "2010-11-15T19:20:44Z")

</div>

Here is the table definition from the generated schema.rb

&nbsp;&nbsp;create\_table "dogs", :primary\_key =\> "dog\_id", :force =\> true do |t| &nbsp;&nbsp;&nbsp;&nbsp;t.string "color", :limit =\> 20 &nbsp;&nbsp;&nbsp;&nbsp;t.string "gender", :limit =\> 20 &nbsp;&nbsp;&nbsp;&nbsp;t.string "dog\_name", :limit =\> 20 &nbsp;&nbsp;end

I used skip-migration because the table already exists in mysql. When I move from learning mode to development mode, I will need to write code against existing databases, so I can't maintain the database source code in ruby.

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [November 15, 2010, 7:25pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/5 "2010-11-15T19:25:37Z")

</div>

chris wrote in post #961631:

> routes.rb, I bet using:action controller and id in link\_to() would work

If you would kindly give me an exact syntax, I'd be like to try it.

I would, however, like to understand why the generated code does not work.

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [November 15, 2010, 8:37pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/6 "2010-11-15T20:37:17Z")

</div>

Bob T. wrote in post #961643:

> Here is the table definition from the generated schema.rb
> 
> &nbsp;&nbsp;create\_table "dogs", :primary\_key =\> "dog\_id", :force =\> true do |t| &nbsp;&nbsp;&nbsp;&nbsp;t.string "color", :limit =\> 20 &nbsp;&nbsp;&nbsp;&nbsp;t.string "gender", :limit =\> 20 &nbsp;&nbsp;&nbsp;&nbsp;t.string "dog\_name", :limit =\> 20 &nbsp;&nbsp;end
> 
> I used skip-migration because the table already exists in mysql. When I move from learning mode to development mode, I will need to write code against existing databases, so I can't maintain the database source code in ruby.

That's not quite true. You need to learn about rake db:schema:dump.

Anyway, you should be using migrations wherever possible, especially as you learn.

Best,

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [November 15, 2010, 9:10pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/7 "2010-11-15T21:10:46Z")

</div>

Marnen Laibow-Koser wrote in post #961663:

> > I used skip-migration because the table already exists in mysql. When I move from learning mode to development mode, I will need to write code against existing databases, so I can't maintain the database source code in ruby.
> 
> That's not quite true. You need to learn about rake db:schema:dump.

Let me rephrase .. I don't want to depend on ruby for schema definition, even if it can do it.

Anyway, I did the migrate separately, like this: &nbsp;&nbsp;rake db:migrate

It brought all the table definitions over from my mysql database.

---

<div class="post-metadata">

**Author:** ![chris5](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@chris5](https://discuss.rubyonrails.org/u/chris5)\
**Post date:** [November 15, 2010, 9:13pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/8 "2010-11-15T21:13:52Z")

</div>

That's the problem:

> create\_table "dogs", :primary\_key =\> "dog\_id", :force =\> true do |t|

I got a similar error under 2.3.8 with your schema. AR expects ID to be called 'id', you can override it in the model or this would work:

&nbsp;&nbsp;create\_table :dogs' do |t| &nbsp;&nbsp;&nbsp;&nbsp;t.string "color", :limit =\> 20 &nbsp;&nbsp;&nbsp;&nbsp;t.string "gender", :limit =\> 20 &nbsp;&nbsp;&nbsp;&nbsp;t.string "dog\_name", :limit =\> 20 &nbsp;&nbsp;end

I would also recommend using migrations. Sometimes it feels like adding a layer of abstraction for it's own sake, but in the long run it is a great idea.

---

<div class="post-metadata">

**Author:** ![Colin\_Law1](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Colin\_Law1](https://discuss.rubyonrails.org/u/Colin_Law1)\
**Post date:** [November 15, 2010, 9:18pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/9 "2010-11-15T21:18:10Z")

</div>

Did you put set\_primary\_key "dog\_id" in the the dog model?

Colin

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [November 15, 2010, 10:13pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/10 "2010-11-15T22:13:42Z")

</div>

Bob T. wrote in post #961668:

> Marnen Laibow-Koser wrote in post #961663:
> 
> > > I used skip-migration because the table already exists in mysql. When I move from learning mode to development mode, I will need to write code against existing databases, so I can't maintain the database source code in ruby.
> > 
> > That's not quite true. You need to learn about rake db:schema:dump.
> 
> Let me rephrase .. I don't want to depend on ruby for schema definition, even if it can do it.

Why not? IMHO you are making a huge mistake. The advantages of having Rails manage your DB schema are many -- the app knows what it wants in the DB; you can have your DB schema in version control with your source code; changes to the schema are no longer difficult.

> Anyway, I did the migrate separately, like this: &nbsp;&nbsp;rake db:migrate
> 
> It brought all the table definitions over from my mysql database.

How could it do that? rake db:migrate only executes your migration files.

Best,

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [November 15, 2010, 11:07pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/11 "2010-11-15T23:07:05Z")

</div>

# Here is the solution....

class Dog \< ActiveRecord::Base set\_primary\_key "dog\_id" end

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [November 15, 2010, 11:15pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/12 "2010-11-15T23:15:08Z")

</div>

Someone else found this before I saw yours, but that is the problem. I assumed that scaffold would know what the primary key is , because it was identified in the migrated schema:

schema.rb

&nbsp;&nbsp;create\_table "dogs", :primary\_key =\> "dog\_id", :force =\> true do |t| &nbsp;&nbsp;&nbsp;&nbsp;t.string "color", :limit =\> 20 &nbsp;&nbsp;&nbsp;&nbsp;t.string "gender", :limit =\> 20 &nbsp;&nbsp;&nbsp;&nbsp;t.string "dog\_name", :limit =\> 20 &nbsp;&nbsp;end

Thanks for your help!

Colin Law wrote in post #961671:

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [November 15, 2010, 11:20pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/13 "2010-11-15T23:20:02Z")

</div>

Regarding migrations -

We use Oracle, MySql , PHP and are just considering using RoR.

If we choose to develop some things in RoR, it will have to learn to get along with the code and the database tables we already have.

If you use only one technology, I understand why you would recommend using that technology exclusively. Personally, I don't believe in getting locked into a particular technology. Thats my choice.

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [November 15, 2010, 11:46pm UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/14 "2010-11-15T23:46:16Z")

</div>

Bob T. wrote in post #961705:

> Regarding migrations -

Please quote when replying.

> We use Oracle, MySql , PHP, Perl/DBI and are just considering using RoR.
> 
> If we choose to develop some things in RoR, it will have to learn to get along with the code and the database tables we already have.

And so it can. But you should dump the schema into the schema file as I already suggested.

> If you use only one technology, I understand why you would recommend using that technology exclusively. Personally, I don't believe in getting locked into a particular technology. Thats my choice.

I don't either. But while you're developing in Rails, you should use Rails migrations.

It's not great practice to have multiple applications touching the same DB anyway.

Best,

---

<div class="post-metadata">

**Author:** ![arga\_aridarma](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@arga\_aridarma](https://discuss.rubyonrails.org/u/arga_aridarma)\
**Post date:** [November 16, 2010, 12:09am UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/15 "2010-11-16T00:09:05Z")

</div>

Dear all, This is a repost of my question, because the first post is considered as thread hijack. I have changed the title, hopefully this time it's not hijacking any threads 😃

I have a silly problem in setting up a relationship between 4 models.

I set these 4 models, ComUser, DefJabatan, DefUserRole, DefKelamin. In each model with name started with 'Def', i put a has\_one:ComUser relationship. So naturally i have 3 belongs\_to relationship in ComUser. I do a simple query in the controller: @users = ComUser.find(:first) and in the view, i simply put a object debug: \<%=debug(@users)%\>

and I get this:

--- !ruby/object:ComUser attributes: &nbsp;&nbsp;def\_jabatan\_id: "1" &nbsp;&nbsp;created\_at: 2010-11-16 04:31:35 &nbsp;&nbsp;def\_user\_role\_id: "1" &nbsp;&nbsp;gsm: "-" &nbsp;&nbsp;updated\_at: 2010-11-16 04:31:35 &nbsp;&nbsp;alamat: "-" &nbsp;&nbsp;username: admin &nbsp;&nbsp;id: "1" &nbsp;&nbsp;def\_kelamin\_id: "1" &nbsp;&nbsp;password: admin &nbsp;&nbsp;online\_status: "2" attributes\_cache: {}

I'm getting a feeling that I didn't set the relationship right, because i don't see any attributes addition in the ComUser from the model started with Def-something that i create above..

Am I missing something here, like violating a naming convention or something?

I even tries to alter the table by implicitly put a foreign key in the table for ComUser model using sql statements, and the debug result is still the same. How can i make this relationship work?

Thanks

PS. I put the code snippet that i use for migrating the database and defining the relationship below.

Regards, Arga

ComUser \< ActiveRecord::Base &nbsp;&nbsp;&nbsp;belongs\_to :DefKelamin &nbsp;&nbsp;&nbsp;belongs\_to :DefUserRole &nbsp;&nbsp;&nbsp;belongs\_to :DefJabatan Migration: &nbsp;&nbsp;&nbsp;&nbsp;create\_table :com\_users do |t| &nbsp;&nbsp;&nbsp;&nbsp;t.timestamps &nbsp;&nbsp;&nbsp;&nbsp;t.references :def\_jabatan, :null =\> false &nbsp;&nbsp;&nbsp;&nbsp;t.integer :def\_kelamin\_id, :null =\> false &nbsp;&nbsp;&nbsp;&nbsp;t.references :def\_user\_role, :null =\> false &nbsp;&nbsp;&nbsp;&nbsp;t.column :username,'varchar(20)', :null =\> false &nbsp;&nbsp;&nbsp;&nbsp;t.column :password,'varchar(20)', :null =\> false &nbsp;&nbsp;&nbsp;&nbsp;end

DefJabatan \< ActiveRecord::Base &nbsp;&nbsp;&nbsp;has\_one:ComUser Migration: &nbsp;&nbsp;&nbsp;&nbsp;create\_table :def\_jabatans do |t| &nbsp;&nbsp;&nbsp;&nbsp;t.timestamps &nbsp;&nbsp;&nbsp;&nbsp;t.column :jabatan,'varchar(20)', :null =\> false &nbsp;&nbsp;&nbsp;&nbsp;end

DefUserRole \< ActiveRecord::Base &nbsp;&nbsp;&nbsp;has\_one:ComUser Migration: &nbsp;&nbsp;&nbsp;&nbsp;create\_table :def\_user\_roles do |t| &nbsp;&nbsp;&nbsp;&nbsp;t.timestamps &nbsp;&nbsp;&nbsp;&nbsp;t.column :role,'varchar(20)', :null =\> false &nbsp;&nbsp;&nbsp;&nbsp;t.string :description, :null =\> false &nbsp;&nbsp;&nbsp;&nbsp;t.string :icon &nbsp;&nbsp;&nbsp;&nbsp;end

DefKelamin \< ActiveRecord::Base &nbsp;&nbsp;&nbsp;&nbsp;has\_one :ComUser Migration: &nbsp;&nbsp;&nbsp;&nbsp;create\_table :def\_kelamins do |t| &nbsp;&nbsp;&nbsp;&nbsp;t.timestamps &nbsp;&nbsp;&nbsp;&nbsp;t.column :kelamin,'varchar(10)', :null =\> false &nbsp;&nbsp;&nbsp;&nbsp;end

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [November 16, 2010, 12:44am UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/16 "2010-11-16T00:44:15Z")

</div>

arga aridarma wrote in post #961713:

> Dear all, This is a repost of my question, because the first post is considered as thread hijack. I have changed the title, hopefully this time it's not hijacking any threads 😃

Still hijacking. Please start a new thread.

Best,

---

<div class="post-metadata">

**Author:** ![Brian\_Troutwine](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@Brian\_Troutwine](https://discuss.rubyonrails.org/u/Brian_Troutwine)\
**Post date:** [November 16, 2010, 2:50am UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/17 "2010-11-16T02:50:10Z")

</div>

> arga aridarma wrote in post #961713:
> 
> > Dear all, This is a repost of my question, because the first post is considered as thread hijack. I have changed the title, hopefully this time it's not hijacking any threads 😃
> 
> Still hijacking. Please start a new thread.

What are you talking about? I'm reading this via the mailing list; on this end of things \_both\_ of arga's mails are hijacking nothing.

---

<div class="post-metadata">

**Author:** ![Erol\_Fornoles](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@Erol\_Fornoles](https://discuss.rubyonrails.org/u/Erol_Fornoles)\
**Post date:** [November 16, 2010, 2:53am UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/18 "2010-11-16T02:53:43Z")

</div>

If you check via Google Groups, it did.

---

<div class="post-metadata">

**Author:** ![Brian\_Troutwine](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@Brian\_Troutwine](https://discuss.rubyonrails.org/u/Brian_Troutwine)\
**Post date:** [November 16, 2010, 3:03am UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/19 "2010-11-16T03:03:03Z")

</div>

> > \> arga aridarma wrote in post #961713: \>\> Dear all, \>\> This is a repost of my question, because the first post is considered \>\> as \>\> thread \>\> hijack. \>\> I have changed the title, hopefully this time it's not hijacking any \>\> threads 😃\> \> Still hijacking. Please start a new thread.
> > 
> > What are you talking about? I'm reading this via the mailing list; on this end of things \_both\_ of arga's mails are hijacking nothing.
> 
> If you check via Google Groups, it did.

Huh.

---

<div class="post-metadata">

**Author:** ![Erol\_Fornoles](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@Erol\_Fornoles](https://discuss.rubyonrails.org/u/Erol_Fornoles)\
**Post date:** [November 16, 2010, 3:13am UTC](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706/20 "2010-11-16T03:13:22Z")

</div>

Link to the original thread, which was originally titled “No route matches controller - scaffold generated code”

[http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/ff7ff1c1dd447e90](http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/ff7ff1c1dd447e90)

[Next page](https://discuss.rubyonrails.org/t/no-route-matches-controller-scaffold-generated-code/55706.md?page=2)
