I have a DB table
CREATE TABLE dbo.bookdetails
id numeric(38,0) NOT NULL,
name varchar(2048) NOT NULL,
system varchar(2048) NOT NULL,
desk varchar(2048) NOT NULL,
strategy varchar(2048) NOT NULL,
trader varchar(2048) NULL
I scaffolded it and edited my controller as:
#@bookdetail_pages, @bookdetails = paginate :bookdetails, :per_page
@books = Bookdetail.find:all
render :xml => @books.to_xml
However, when I try to access this page, I get “can’t convert Hash into
String” as an error.
There is another table in the same db that i scaffold and use in exactly
the same manner and it works perfectly.
Could someone please point me what I could be doing wrong.