2012-10-01から1ヶ月間の記事一覧
はじめに http://nirasan.hatenablog.com/entry/2012/10/28/170617 で作ったOAuth認証するウェブサービスにAndroidからログインする 参考サイト https://developers.google.com/accounts/docs/MobileApps https://sites.google.com/site/oauthgoog/oauth-pra…
概要 RailsでOAuth2.0を使ってGoogleアカウントでログインする仕組みを実装する 後述の参考サイトではgoogle-api-clientとsinatraのサンプルコードがあるのでこれをRailsに移植する 参考サイト https://developers.google.com/accounts/docs/OAuth2WebServer…
動作環境 Ubuntu 10.11 ruby 1.9.2 Rails 3.2.5 プロジェクトの作成 rails new Project サーバー起動 cd Project rails server Javascriptランタイムがないエラー echo "gem 'therubyracer'" >> Gemfile bundle install モデルの作成 rails g model user use…
スペースが等幅じゃないので括弧とかがずれるの対応 http://kumagonjp2.blog.fc2.com/blog-entry-23.html を参考に Window -> Preferences General -> Appearance -> Colors and Fonts Java -> Java Editor Text Font Ubuntu Mono に変更 タブをスペースにす…
タイトルの通り。 任意のURLを入力して、ボタン押下でサーバー通信を行い、結果を表示するテスト。 res/layout/activity_main.xml