Instead of to_xml and as_json, simply implement to_api. Return an unformatted hash. Let the model understand the data. Let the controller understand the format. In Rails, the controller can simply call render :xml => model.to_api or render :json => model.to_api.
☆16Jan 20, 2017Updated 9 years ago
Alternatives and similar repositories for to_api
Users that are interested in to_api are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Wrapping Objection in RubyMotion.☆25Jan 14, 2015Updated 11 years ago
- Random-access directory storage in your shell. Navigate deep project hierarchies super fast. The root of your current project is just a '…☆25Jul 4, 2026Updated 4 months ago
- A small Objective-C wrapper around GCD☆30Sep 24, 2012Updated 14 years ago
- A Growl notification library that uses native c bindings to interact with GrowlApplicationBridge rather than Growl's network API.☆10Dec 18, 2011Updated 14 years ago
- Bind properties to a key path on another object☆12Jun 21, 2011Updated 15 years ago
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- A collection of strategies for Warden☆19Mar 1, 2010Updated 16 years ago
- A simple ActiveRecord plugin to correctly format a URL in the database whether the user enters "http://" or not☆12Jun 2, 2015Updated 11 years ago
- The best way to iteratively develop with Ruby☆10Aug 1, 2016Updated 10 years ago
- An action RPG created in Ruby☆22May 3, 2013Updated 13 years ago
- A very basic RubyMotion ASCII DSL to create views☆37May 22, 2012Updated 14 years ago
- Jumprope-based local content store☆55Mar 17, 2013Updated 13 years ago
- Emit helpful artifacts on Capybara Webkit test failures☆11Jan 6, 2016Updated 10 years ago
- Palmist☆17May 13, 2008Updated 18 years ago
- Mirror of ruby-protobuf over @ google code (http://ruby-protobuf.googlecode.com/svn). Updated once per hour.☆13Jun 14, 2009Updated 17 years ago
- GPU virtual machines on DigitalOcean Gradient AI • AdGet to production fast with high-performance AMD and NVIDIA GPUs you can spin up in seconds. The definition of operational simplicity.
- Navigate Common Core Mathematics standards.☆10Aug 19, 2020Updated 6 years ago
- Nice-FFI: Convenience layer atop Ruby-FFI☆23Jul 8, 2015Updated 11 years ago
- ☆10Nov 25, 2022Updated 3 years ago
- Spark Core Water (+Temp + Humidity) Sensor with SMS Alerts Using IFTTT and SmartThings integration☆12Feb 27, 2016Updated 10 years ago
- Ruby library for games networking. Uses ENet as backend☆14Jan 12, 2019Updated 7 years ago
- Building a web page fast!☆10Nov 16, 2011Updated 15 years ago
- Eruta, a free and open source futuristic jRPG. http://erutagame.blogspot.com/☆11Apr 9, 2015Updated 11 years ago
- SwitchPipe is a backend process manager and HTTP proxy that makes (especially Ruby) web app deployment simple. NOW OBSOLETE. DO NOT USE.☆14Apr 13, 2008Updated 18 years ago
- Provides a local command-line interface that you can use on Greengrass core devices to develop and debug components locally.☆15Nov 2, 2026Updated 2 weeks ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Tweaks to enhance the building and compiling of Ruby Motion files.☆13May 29, 2012Updated 14 years ago
- Simple Ruby trees☆18Apr 14, 2010Updated 16 years ago
- Little Fortune Planet LD38 Jam entry☆10May 20, 2017Updated 9 years ago
- A helper to dramatically speedup the time it takes to run a 'require rubygems'. DEPRECATED shouldn't be necessary with newer versions of…☆14Oct 14, 2010Updated 16 years ago
- GET, POST, PUT, DELETE, with something around (ruby)☆11Aug 4, 2013Updated 13 years ago
- Ludum Dare 38 Jam submission☆10Oct 24, 2022Updated 4 years ago
- A Ruby port of the PHP MonsterId script.☆14Oct 6, 2017Updated 9 years ago
- A CLI app for getting the weather forecast using forecast.io's API.☆15Apr 21, 2015Updated 11 years ago
- Write Ruby extensions with Crystal☆12Jan 18, 2016Updated 10 years ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- An RTS-like game with programmable bots☆13Mar 17, 2023Updated 3 years ago
- Proof of concept that you can build a queueing server and client RESTfully, leveraging starling's persistent queue code, a lightweight we…☆11Nov 12, 2008Updated 18 years ago
- a lightweight but powerful documents search engine, written in Rails.☆12Nov 10, 2010Updated 16 years ago
- A port of TextMate's Sunburst theme to VIM, supporting both color terminals and GUI-based editors.☆10Jul 28, 2020Updated 6 years ago
- Ruby bindings to the libstatgrab portable system statistics library☆13May 30, 2008Updated 18 years ago
- The interpreter wrapper for Ruby/SDL (written by kumaryu)☆14Mar 28, 2026Updated 7 months ago
- Code & Slides for the eurucamp 2014 talk about Gosu☆13Sep 4, 2014Updated 12 years ago
Are these results useful?