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/ 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/ → /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