class ClassifiedController < ApplicationController def list @classifieds = Classified.find(:all) end def show @classified = Classified.find(params[:id]) end def new @classified=Classified.new end def create @classified = Classified.new(params[:classified]) if @classified.save redirect_to :action => 'list' else render :action => 'new' end end end