# Error: \[Object\]Controller: missing default helper path \[cont

**URL:** <https://www.ruby-forum.com/t/error-object-controller-missing-default-helper-path-cont/50387>\
**Category:** Rails\
**Created:** [December 15, 2005, 9:23pm UTC](https://www.ruby-forum.com/t/error-object-controller-missing-default-helper-path-cont/50387 "2005-12-15T21:23:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Shorrock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de0a6/32.png) [@Chris\_Shorrock](https://www.ruby-forum.com/u/Chris_Shorrock)\
**Post date:** [December 15, 2005, 9:23pm UTC](https://www.ruby-forum.com/t/error-object-controller-missing-default-helper-path-cont/50387/1 "2005-12-15T21:23:24Z")

</div>

Hello,

I seem to have run into a problem that I can’t seem to make any  
headway on. I’ve searched the mailing archives, google’d for the  
appropriate keywords and have checked up with the folks on IRC but I  
can’t seem to find a solution.

My problem is as such. I have a web application that has various  
controllers which work fine. I’ve added a new controller for the  
object Event, which at this point is very simple and reads as:

class EventController \< ApplicationController  
layout ‘standard’

before\_filter :authorize

# method handle used for handling adding new events to the system

def add  
@locations = Location.find\_roots  
@arts = Art.find\_all  
@event = Event.new( @params[:event] )  
@event.user = @session[:user]

```
 if @request.post? and @event.save
   redirect_to :action=>:view, :id=>@event.id
 else
   @event.errors.each_full do |msg|
     logger.error( "error while saving event: #{msg}")
   end
 end

```

end

end

When I call [http://localhost:3000/event/add/](http://localhost:3000/event/add/) it loads the correct  
view which has a variety of form elements. When I commit this form I  
get a blank page, and the output of WEBrick reads:

127.0.0.1 - - [15/Dec/2005:11:57:06 PST] “POST /event/add HTTP/1.1”  
500 0  
[http://localhost:3000/event/add/](http://localhost:3000/event/add/) → /event/add

The ONLY line which gets appended to the development.log is:

EventController: missing default helper path event\_helper

Does anybody have any ideas what is going on? I’ve restarted the  
server numerous times and have even (on a tip from the mailling list  
archive) rebooted. Any help would be welcomed with much praise…

Chris

---

<div class="post-metadata">

**Author:** ![Chris\_Shorrock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de0a6/32.png) [@Chris\_Shorrock](https://www.ruby-forum.com/u/Chris_Shorrock)\
**Post date:** [December 15, 2005, 9:38pm UTC](https://www.ruby-forum.com/t/error-object-controller-missing-default-helper-path-cont/50387/2 "2005-12-15T21:38:33Z")

</div>

my first guess is you probably did not use ‘script/generate controller  
event’ to create your controller, as that should have created the  
app/helpers/event\_helper.rb file as well

but i could be wrong.

---

<div class="post-metadata">

**Author:** ![Chris\_Shorrock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de0a6/32.png) [@Chris\_Shorrock](https://www.ruby-forum.com/u/Chris_Shorrock)\
**Post date:** [December 15, 2005, 9:50pm UTC](https://www.ruby-forum.com/t/error-object-controller-missing-default-helper-path-cont/50387/3 "2005-12-15T21:50:36Z")

</div>

Hmm… good guess - I didn’t think it was required, since my other  
controllers work without it, and my controller works, just not when I  
post to the add method… Anyhow - to be safe - I regenerated the  
controller from scratch and re-ran it. The problem turns out to be  
the same as before, only now while I still get a 500 response and a  
blank page in my browser there is no messages whatsoever added to the  
development.log…
