I am having issues with getting my pretty urls to work.
map.connect ‘:user’ , :controller => ‘front’ ,
:action => ‘list’ ,
:filter => ‘user’
@advert_pages, @adverts = paginate :adverts, :per_page => 10
@user = User.find(params[:id])
@userAdverts = @user.adverts.find(:all)
where dawie is one of the users
gives me an error: Couldn’t find User without an ID
which makes sense.
Do I have to change the way my list function works? So it doesn’t need
the parameter. How does the userId(12) get mapped to the