Architecting RESTful Rails 4 API 22 Oct 2013 This is a follow-up to my previous post about Authentication with Rails, Devise and AngularJS. This time we’ll focus more on some aspects of the API implementation. One thing to keep in mind, where my previous example used Rails 3.2, I’m using Rails 4 this time around. Versioning If you are building an API which could be potentially consumed by many dif
9bar.tokyo 2018 Copyright. All Rights Reserved. The Sponsored Listings displayed above are served automatically by a third party. Neither the service provider nor the domain owner maintain any relationship with the advertisers. In case of trademark issues please contact the domain owner directly (contact information can be found in whois). Privacy Policy
The Ruby I18n (shorthand for internationalization) gem which is shipped with Ruby on Rails (starting from Rails 2.2) provides an easy-to-use and extensible framework for translating your application to a single custom language other than English or for providing multi-language support in your application. The process of "internationalization" usually means to abstract all strings and other locale
Choose a project RSpec Behaviour Driven Development framework for Ruby 6 imported versions - 25 notes - Browse - Search Ruby on Rails The open source web application framework for the Ruby programming language 26 imported versions - 1313 notes - Browse - Search Ruby A dynamic, open source programming language with a focus on simplicity and productivity 12 imported versions - 370 notes - Browse - S
今回は「ActiveResource」を使って、YouTubeAPIを通しての画像取得にトライしました。 入力された検索ワードを使って検索し、引っかかった動画の情報を取得し表示したいためです。 ActiveResourceとは RailsでActiveRecordを使用していると、Model経由でDBのデータを取得したり更新したりできますが、 ActiveResourceを使用すると、WebApiで取得してきたデータもModel経由で取得できるようにできます! ViewやcontrollerからはDBとかAPIとかどこから取得してきたかを意識することなく、 同じようにModelからデータを操作することができます。 Railsデフォルトの機能ですね。 〜参考にさせて頂きました!〜 ActiveResource の使い方(前編) : Rails 同士で通信する - WebOS Goodies
WebOS Goodies へようこそ! WebOS はインターネットの未来形。あらゆる Web サイトが繋がり、共有し、協力して創り上げる、ひとつの巨大な情報システムです。そこでは、あらゆる情報がネットワーク上に蓄積され、我々はいつでも、どこからでも、多彩なデバイスを使ってそれらにアクセスできます。 WebOS Goodies は、さまざまな情報提供やツール開発を通して、そんな世界の実現に少しでも貢献するべく活動していきます。 少し前にActiveResource で Google Spreadsheets をアクセスするライブラリを公開しましたが、思ったほどブクマとかされなくて、ちょっとションボリ(´・ω・`)な感じでした。まあ、ライブラリがイマイチと言われればそれまでなのですが、それ以前に ActiveResource 自体があまりよく知られていたいのかな、という気もします。たしかに
Rails & Angular Part I Posted on May 7th, 2014 by Ewout Kleinsmann We are a young web agency, founded April last year. Kohana (PHP framework) together with SpineJS (Backbonesque JS framework) had always been our development stack of choice, but we were looking for something new. After some research we picked Ruby on Rails in combination with AngularJS and we started the development of our own CMS
FbGraph¶ ↑ A full-stack Facebook Graph API wrapper in Ruby. <img src=“https://secure.travis-ci.org/nov/fb_graph.png” /> This gem is deprecated¶ ↑ FbGraph is basically developed for Graph API v1.0, and could be buggy with v2.+. Since Graph API v1.0 is shut down on 2014/04/30, this gem is also deprecated. Please use fb_graph2 gem instead. github.com/nov/fb_graph2 Installation¶ ↑ gem install fb_graph
API使ってどうのこうのという分野に経験が浅いので、頑張ってみた。慣れるといろんなことできて楽しい。HTTPリクエストの投げ方とか、勉強になりました。今回ははてなブックマークでやってみました。 はてなで指定されたURIに、指定されたフォーマットでリクエストを投げる。 ていうと簡単だけど、指定されている状態をどうつくるのか悩んだ。。 認証にはOAuthとWSSEがあって、WSSEは非推奨でセキュリティもよろしくないという話だけど、シンプルなのでWSSE認証ででやりました。 基本はここに載っている。 はてなブックマークAtomAPI WSSE認証についてはここにありますが、 下のようなものをヘッダにつけろということです。 X-WSSE: UsernameToken Username="hatena", PasswordDigest="ZCNaK2jrXr4+zsCaYK/YLUxImZU=",
http://www.commandercoriander.net/blog/2014/01/04/test-driving-a-json-api-in-rails1 comment | 0 pointsPivotal LabsのEno ComptonがRailsでJSON APIをテスト形式で理解できるように紹介してくれてます。「Railsアプリをてがけると、いずれ、シングルページアプリ、モバイルクライアントのためにRESTful APIが必要になるだろうから練習用に。」ということで、コードはGithubで公開されています。 GET /movies POST /movies GET /movies/:id PUT /movies/:id DELETE /movies/:id 上記のrouteをサポートするために、Railsアプリ + RSpec + FactoryGirlを用意したら、
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く