Ok, I searched but couldn’t find anything and I even tried the RoR IRC
channel with no help.
I get this error:
uninitialized constant Airport
I used this code which I got from the RoR site.
@sorter = SortingHelper::Sorter.new self, %w(icao host_id name),
@params[‘sort’], @params[‘order’], ‘icao’, ‘ASC’
@pages = Paginator.new self, Airport.count, 10, @params[‘page’]
@airports = Airport.find_all nil, @sorter.to_sql,
render_action ‘none’ if 0 == @airports.length
Can anyone help? If you need more information I will give it if I can.
BTW, I’m a RoR newbie so if this is something really simple, I’m sorry.