Tips when writing an API in Ruby on Rails

Tips when writing an API in Ruby on Rails

blog.jalada.co.uk 26 Mar '15, 3pm

At work we have settled into a pattern of splitting our frontend and backend into standalone JS applications at the front and Ruby on Rails at the back. This means I've been writing a lot of Ruby on Rails applications where the only real interface is an API. I've avoided purpose-built gems, instead using a fairly standard Ruby on Rails stack and adopting a few general practices. I've compiled some of these into the following tips. 1. Use Jbuilder for JSON responses Jbuilder is an official Ruby on Rails library for building JSON structures using a DSL. Add it to your Gemfile and you can write JSON responses using the full view stack Rails g...

Quickly #learn new #Rails features with Rails Play: #Ruby | #WebDev | #learntocode

nicoschuele.com 29 Mar '15, 3pm

Build a playground to experiment with Rails quickly and easily Ever wanted to quickly try out a new gem or experiment with a Rails feature? T...

Today in #Ruby, #Rails, & #Python is out! Stories via @tobi @atakig @luisjrodriguezo

paper.li 29 Mar '15, 1pm

Today in #Ruby, #Rails, & #Python Today in #Ruby, #Rails, & #Python, by David Young: News from Rubyists and Pythonistas Please enable Javascr...

#RailsBricks 3.1.7 released: supports #Rails 4.2.1 and some enhancements: #Ruby | #RubyOnRails | ...

railsbricks.net 28 Mar '15, 10am

RailsBricks 3.1.7 has been released! posted about 6 hours ago back RailsBricks 3.1.7 is available and you are advised to update to this versi...

#Codemotion Rome 2015: A practical introduction to Golang Slides & Code

simonecarletti.com 28 Mar '15, 1pm

Codemotion Rome 2015: A practical introduction to Golang 28 March 2015 by Simone Carletti — Leave a Comment Yesterday I gave a 15 minutes tal...

Develop a web application by gurugrv We have a school management system built...

freelancer.com 28 Mar '15, 1pm

We have a school management system built on ruby on rails. It has an attendance system which ...

@thoughtbot announced an upcoming book on testing. #rails #tdd #testing #ruby

robots.thoughtbot.com 27 Mar '15, 3pm

Writing effective tests is a necessary part of Ruby development. A good test suite guides you...

Latest Comments

  1. imageat <a href="http://www.keepdynamic.com/barcoding/vb-net-barcode-generator.shtml">barcode generator for vb.net</a> [url="http://www.keepdynam... » Barby 0.1 - Ruby barcode generat...
  2. imageat i agree and i think this barcode generator is good as well. http://www.keepdynamic.com/barcoding/vb-net-barcode-generator.shtml [url="htt... » Barby 0.1 - Ruby barcode generat...
  3. makaveil4202 A 3rd party [url=http://www.keepautomation.com/products/net_barcode/]barcode generating toolkit[/url] is not bad. I'm having one and it w... » Barby 0.1 - Ruby barcode generat...
  4. ssusanti 177hVsaJjL2iL6zKmctqWdCqCmZuj2KsPB » Reclaim your “Work from Home Zen" |
  5. mariahsharp468 http://www.keepautomation.com/guide/dotnet_barcode_generator.html » Barby 0.1 - Ruby barcode generat...