search for: eallik

Displaying 4 results from an estimated 4 matches for "eallik".

Did you mean: fallik
2007 Mar 28
7
Rails, REST and JSON
Hi everyone, I''m writing a lightweight AJAX application using Rails on the server side as a RESTful web service provider. I need the web service to support both JSON and XML I/O. Outputting data in XML and JSON is easy (using to_xml and to_json), and it''s also easy to do XML input as Rails does it for you automatically. Is it possible to somehow have the same automatic parsing
2007 Apr 23
0
REST default response format
Hi, Does anybody know how to change the default response format of RESTful controllers? My controllers support both XML and JSON responses but I need JSON one to be the default one. Changing the order of the format.xx {} clauses does not seem to solve the problem. Regards, Erik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2007 Aug 01
0
Single Table Inheritance using a boolean column
Hi everybody, Is it possible to use a boolean column to determine between classes instead of a varchar one? I need it because boolean is faster and takes up less space, and also makes the SQL schema look better. Erik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to
2007 May 05
3
DB trigger vs before_create
Hello everyone, I''m having trouble figuring out which approach is better. I have the following tables: products, orders and line_items. Every time an Order is placed, the quantity field in the products table has to be updated for each LineItem in the Order. One option is to use DB triggers which is not as portable as using before_create in the Order model. But with before_create I cannot