On 21.11.2011 13:50, gbolahan a. wrote:
> here is some segement of the code i the controller to give some
> clarification.
>
> def  create
>      @categories = Category.all
>      @clisting = clisting.new(params[:Clisting])
>
>      respond_to do |format|
>        if @clisting.save
>
Try this:
@clisting = Clisting.new(params[:clisting]) #Clisting.new instead 
clisting.new
Because Clisting is a constant and the name of the model and clisting is 
local variable