navigation list order by

Thanks Rick

on the actual categories page the categories are listed in category_id order correctly, I have the following code in my controller

GET /categories

GET /categories.json

def index

@categories = Category.order(‘id asc’)

end

The only problem is the navigation list that I have put into the application layout page seems to have a mind of its own, here is the code for

If, by “application layout page” you mean app/views/catagories/index.html.erb, use @categories.each not Category.all.each.