I'm getting started on figuring out how to use RESTful design. I have this action:
# GET /feedback_messages
# GET /feedback_messages.xml
def index
page = params[:page]
page ||= 1
@feedback_messages = FeedbackMessage.paginate(
:all,
:page => page,
:per_page => 20,
:order => 'updated_at'
)
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @feedback_messages }
end
end
And I have the template...
views/feedback_message/index.haml
When I hit it with app.get '/feedback_messages'
I get an error saying "Missing template feedback_messages/index.erb".
How do I tell Rails that I want it to use the Haml template?