I'm following an example in the "Head First Rails" book.
Now, when I "create" a record, and then go to the table, I find that a BLANK record is created also I enter field values.
What may I be missing?
This is how "advs_controller.rb" looks like:
class AdvsController < ApplicationController def show @adv = Adv.find(params[:id]) end
def index @advs = Adv.find(:all) end
def new @adv = Adv.new(params[:ad]) end
def create @adv = Adv.new(params[:ad]) @adv.save end end
Thanks.