oneiros/frab — Issue #4: Creating an event as cfp user is raising error undefined method `model_name' for ActiveRecord::Relation:Class
Author: wingfire
Created: 2011-11-08 22:29:03+00:00
State: open

NoMethodError in Cfp/events#new

Showing ./app/views/cfp/events/_form.html.haml where line #1 raised:

undefined method `model_name' for ActiveRecord::Relation:Class

Extracted source (around line #1):

1: = semantic_form_for([:cfp, @event], :html => {:multipart => true}) do |f|
2: = f.inputs :name => t("cfp.basic_information") do
3: = f.input :title
4: = f.input :subtitle

Trace of template inclusion: app/views/cfp/events/new.html.haml