# "NoMethodError in AdminController#index" error

**URL:** <https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index-error/190092>\
**Category:** Rails\
**Created:** [June 14, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index-error/190092 "2010-06-14T19:03:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hormoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hormoz](https://www.ruby-forum.com/u/hormoz)\
**Post date:** [June 14, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index-error/190092/1 "2010-06-14T19:03:25Z")

</div>

hi, im totally a newbie so i have got no idea whatsoever why i got this  
error, the thing that happend was i was doing a little coding along with  
the [lynda.com](http://lynda.com) rails series that i got this error.  
well as u can see this is the error which i get on terminal, but there  
is another one in browser too which says : "NoMethodError in  
AdminController#index " u can see it in the picture here :  
[Twitpic](http://twitpic.com/1wsbal)

so what seems to be the problem.

---

<div class="post-metadata">

**Author:** ![hormoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hormoz](https://www.ruby-forum.com/u/hormoz)\
**Post date:** [June 14, 2010, 7:40pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index-error/190092/2 "2010-06-14T19:40:39Z")

</div>

Hormoz H. wrote:

> hi, im totally a newbie so i have got no idea whatsoever why i got this  
> error, the thing that happend was i was doing a little coding along with  
> the [lynda.com](http://lynda.com) rails series that i got this error.

Those tutorials are quite old and may not work with current versions of  
Rails. Try [guides.rubyonrails.org](http://guides.rubyonrails.org) instead.

> well as u can see this is the error which i get on terminal, but there  
> is another one in browser too which says : "NoMethodError in  
> AdminController#index " u can see it in the picture here :  
> [Twitpic](http://twitpic.com/1wsbal)
> 
> so what seems to be the problem.

Just like it says: you’re trying to call a method called index that  
doesn’t exist.

Best,  
–Â  
Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![hormoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hormoz](https://www.ruby-forum.com/u/hormoz)\
**Post date:** [June 14, 2010, 8:09pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index-error/190092/3 "2010-06-14T20:09:59Z")

</div>

[Please quote when replying.]

Hormoz H. wrote:

> so what about the things in the terminal, are they quite normal ?

No. You’ve hit an error. Don’t use the [lynda.com](http://lynda.com) tutorials with Rails  
2.3.8.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![hormoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hormoz](https://www.ruby-forum.com/u/hormoz)\
**Post date:** [June 14, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index-error/190092/4 "2010-06-14T20:23:11Z")

</div>

Marnen Laibow-Koser wrote:

> [Please quote when replying.]
> 
> Hormoz H. wrote:
> 
> > so what about the things in the terminal, are they quite normal ?
> 
> No. You’ve hit an error. Don’t use the [lynda.com](http://lynda.com) tutorials with Rails  
> 2.3.8.
> 
> ## Best,
> 
> Marnen Laibow-Koser  
> [http://www.marnen.org](http://www.marnen.org)  
> removed\_email\_address@domain.invalid

can we go more into the details ? like, how can i fix them ?

---

<div class="post-metadata">

**Author:** ![hormoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hormoz](https://www.ruby-forum.com/u/hormoz)\
**Post date:** [June 14, 2010, 9:29pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index-error/190092/5 "2010-06-14T21:29:26Z")

</div>

Hormoz Zamanpour Siahkal wrote:

> Marnen Laibow-Koser wrote:
> 
> > [Please quote when replying.]
> > 
> > Hormoz H. wrote:
> > 
> > > so what about the things in the terminal, are they quite normal ?
> > 
> > No. You’ve hit an error. Don’t use the [lynda.com](http://lynda.com) tutorials with Rails  
> > 2.3.8.
> > 
> > ## Best,
> > 
> > Marnen Laibow-Koser  
> > [http://www.marnen.org](http://www.marnen.org)  
> > removed\_email\_address@domain.invalid
> 
> can we go more into the details ? like, how can i fix them ?

You have enough information to start looking. Please read the  
documentation I’ve suggested before begging for answers. Otherwise,  
you’re wasting your time and mine.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![hormoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hormoz](https://www.ruby-forum.com/u/hormoz)\
**Post date:** [June 14, 2010, 9:34pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index-error/190092/6 "2010-06-14T21:34:07Z")

</div>

> You have enough information to start looking. Please read the  
> documentation I’ve suggested before begging for answers. Otherwise,  
> you’re wasting your time and mine.
> 
> ## Best,
> 
> Marnen Laibow-Koser  
> [http://www.marnen.org](http://www.marnen.org)  
> removed\_email\_address@domain.invalid

tnx anyway, appreciate it.

---

<div class="post-metadata">

**Author:** ![hormoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hormoz](https://www.ruby-forum.com/u/hormoz)\
**Post date:** [June 14, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index-error/190092/7 "2010-06-14T19:45:06Z")

</div>

so what about the things in the terminal, are they quite normal ?

---

<div class="post-metadata">

**Author:** ![hormoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hormoz](https://www.ruby-forum.com/u/hormoz)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index-error/190092/8 "2010-06-17T16:22:35Z")

</div>

On Jun 14, 6:03 pm, Hormoz H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> hi, im totally a newbie so i have got no idea whatsoever why i got this  
> error, the thing that happend was i was doing a little coding along with  
> the [lynda.com](http://lynda.com) rails series that i got this error.  
> well as u can see this is the error which i get on terminal, but there  
> is another one in browser too which says : "NoMethodError in  
> AdminController#index " u can see it in the picture here :[Twitpic](http://twitpic.com/1wsbal)
> 
> so what seems to be the problem.

Active scaffold is blowing up. Is the version you’ve got compatible  
with the version of rails you’re using.

Fred
