I get XML output calling '
http://localhost:3000/people' with Internet
Explorer 7 (IE6 and Firefox works fine) by the following code (git
version of r_c):
index do
before do
@people = current_user.has_role?('admin') ?
Person.all.sort_by(&:name) : current_user.people.sort_by(&:name)
end
wants.html do
redirect_to new_person_path if @people.empty?
end
end
The command 'formats = :html' after 'index do' solves the problem (I
am using haml with '!!! Strict' header). Without r_c the code works
too.
Greetings, Bence