search for: acts_as_api

Displaying 3 results from an estimated 3 matches for "acts_as_api".

2013 Apr 09
1
Help me bout gem 'acts_as_api' in RoR
I''m working with ''acts_as_api'' but I cant''t understand how it to do I try to find tutorial about it with a small project using gem ''acts_as_api'' but I''m afraid it is none. who can give me some advice to build small project use gem ''acts_as_api'' Thanks.......... --...
2012 Jan 27
2
to_json performance
...render text: Yajl::Encoder.encode(my_hash) Using `Yajl::Encoder.encode`(or `MultiJson.encode`for that matter) yields another kind of result: 12614ms (8253.6ms always spent on the database query) Is there something we can do about this? Note: some may point out to try few gems like `rabl`or `acts_as_api`, but don''t forget they are mainly for presentation purpose and they are comparable to the `to_json` performance in this regard. Thanks for reading. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group,...
2011 Jul 31
8
Add virtual attribute
Hi! Let''s say I have an app that handles a TODO list. The list has finished and unfinished items. Now I want to add two virtual attributes to the list object; the count of finished and unfinished items in the list. I also need these to be displayed in the json output. How do I achieve that? Best Regards Linus -- You received this message because you are subscribed to the Google