search for: activerec

Displaying 2 results from an estimated 2 matches for "activerec".

Did you mean: active_rec
2006 Jul 06
0
Paging with multiple tables/models
...smooth way to implement paging over a combination of two tables. My application tracks which books and movies you have borrowed from me. For reasons that make sense elsewhere in the application, these are seperated out into two tables: book_borrowers and movie_borrowers and therefore 2 different activerec objects: BookBorrower and MovieBorrower This particular screen will display something like this (plz excuse formatting): Name Has Borrowed ------- ------------------- Ron Book1, Book2, Movie4 Bob Book3 Tom Movie1 Paging seems quite simple if I would like to display ei...
2006 Jan 16
2
ActiveRecord: table name with spaces?
...e done set_table_name "tablename with spaces", but I can''t get find(:all) to work. I get the following error (because apparently it''s not putting [ ] around the name as is required for SQL Server for names with spaces. ------------------- c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_ adapters/abstract_adapter.rb:88:in `log'': DBI::DatabaseError: Execute (ActiveRec ord::StatementInvalid) OLE error code:80040E14 in Microsoft OLE DB Provider for SQL Server Incorrect syntax near the keyword ''all''. HRESU...