NameError in SignupsController#new ==> uninitialized constant SignupsController::Signup


#1

signups_controller.rb

class SignupsController < ApplicationController

def new
@signup = Signup.new
end
end

config/routes.rb

get '/thanks' => 'signups#thanks'
resources :signups
root 'signups#new'

I don't understand what's wrong?!


#2

Hi Ehab,

I think you might be missing your Signup model. Do you have a model for signups?
If you don't, you can generate models like this:

$ rails generate model Model

:)