# Action Controller: Exception caught

**URL:** <https://discuss.rubyonrails.org/t/action-controller-exception-caught/61629>\
**Category:** rubyonrails-talk\
**Created:** [November 16, 2011, 3:12am UTC](https://discuss.rubyonrails.org/t/action-controller-exception-caught/61629 "2011-11-16T03:12:05Z")\
**Posts on this page:** 4\
**Page:** 1

<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, 2011, 3:12am UTC](https://discuss.rubyonrails.org/t/action-controller-exception-caught/61629/1 "2011-11-16T03:12:05Z")

</div>

Hello All,

I am taking a programming class and I am running into some problems with a Rail program I am working on from a book called "Beginning Rails 3, Updated." The book is having me create a blog application and I get to the point where I run the rails web server. When the page loads there is a link that suppose to go to another page where I can create a new blog, in this case a "new articile." When I click on the link it takes me to a page Called "Action Controller: Exception Caught and the title of the page is "NoMethodError in Articles#new". I am still pretty new at this, and I am not sure what this means. I will list the full part of the error screen. If you need the rest, please let me know. Thank you!

NoMethodError in Articles#new

Showing C:/IS410/Programs/blog/app/views/articles/\_form.html.erb where line #16 raised:

undefined method `title' for #\<Article id: nil, created\_at: nil, updated\_at: nil\>

Extracted source (around line #16):

13: 14: \<div class="field"\> 15: \<%= f.label :title %\>\<br /\> 16: \<%= f.text\_field :title %\> 17: \</div\> 18: \<div class="field"\> 19: \<%= f.label :body %\>\<br /\>

Trace of template inclusion: app/views/articles/new.html.erb

Rails.root: C:/IS410/Programs/blog

---

<div class="post-metadata">

**Author:** ![kevin9](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kevin9](https://discuss.rubyonrails.org/u/kevin9)\
**Post date:** [November 16, 2011, 4:01am UTC](https://discuss.rubyonrails.org/t/action-controller-exception-caught/61629/2 "2011-11-16T04:01:53Z")

</div>

You do not have title column in your database , try generate a migration to add the missing columns

---

<div class="post-metadata">

**Author:** ![Gautam\_Pai](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Gautam\_Pai](https://discuss.rubyonrails.org/u/Gautam_Pai)\
**Post date:** [November 16, 2011, 5:18am UTC](https://discuss.rubyonrails.org/t/action-controller-exception-caught/61629/3 "2011-11-16T05:18:05Z")

</div>

go to your app root folder and try running

rake db:migrate

---

<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 17, 2011, 6:23pm UTC](https://discuss.rubyonrails.org/t/action-controller-exception-caught/61629/4 "2011-11-17T18:23:02Z")

</div>

Thank you guys both your ideas worked great. My Rails project is now working. Thanks again!
