Ubuntuで初めてRubyやRailsに挑戦する方のために、最新の Ruby 1.9.3 と Ruby on Rails 3.2 のインストール手順をやや詳しく説明します。 なお、本稿ではRubyのインストールにrbenvを利用します。apt-getでインストールされるRubyはバージョンが古いので、(手順がちょっと複雑ですが)本稿の方法をお勧めします。また、rbenvを利用すると、プロジェクトごとにRubyのバージョンを簡単に切り替えられるというメリットもあります。 本稿が対象とする OS は Ubuntu 11.10 です。「手順通りやったけどうまく行かなか...
A life coach can help with many areas of your life and improve your psychological well-being. Perhaps you are at a crossroads, need to make decisions or move forward? Maybe you’re not sure about the next step or are just stuck in a rut? A life coach will often start by guiding you in ...
All good points, and I usually follow most of these myself (but you have to know when you break the rules too). I agree syntax highlighting makes code easier to read, but I’ll usually skip the syntax highlighting in favor of using color to call attention to important features in the c...
Sometimes things happen and for reasons unknown, your airport stops working. You could go the menu bar, turn WIFI off, and then turn WIFI on again, or you could do create a shell script with these contents #!/bin/bash /usr/sbin/networksetup -setairportpower en0 off sleep 1 /usr/sbin/n...
Il existe plusieurs moyens d’installer Ruby sous GNU /Linux, en fonction de la distribution que vous utilisez. Vous pouvez bien sûr télécharger le code source et compiler manuellement Ruby. Toutefois, un grand nombre de distributions intègrent un système de paquetages précompilés (paq...
Job Seekers: Premium Jobs | View recent jobs | Sign in to view jobs local to you Recruiters: Post a Job | How does it work? | Pricing | Terms Find a great Rails job or advertise to the world's collection of Rails developers The most authoritative source of information for the worldwid...
qwikWeb は、メーリングリストサーバと Wiki サーバが統合されたグループ・コミュ ニケーション・システムである。メーリングリストと Wiki の 長所を合わせたようなシステムとなっている。 本稿では、メーリングリストサーバと Wiki サーバの統合という特徴から一旦外れ、 qwikWeb の Wiki サーバ部分に着目し、実装の詳細について解説する。 (ここでは簡単のため、「qwikWeb の Wiki サーバ部分」のことを、単に「 qwikWeb 」 と呼ぶことにする。) qwikWeb は、高機能な Wiki サーバであると同時に、様々な機能拡張を容...
A model based on ActiveModel that provides mass assignment with role support.
前回 は、タスク管理ツールの要となる tasks コントローラのスケルトンを生成しました。 今回は、ビューを整えていきましょう。 レイアウト エディタで app/views/layouts/application.html.erb を開いてください。初期状態は次のようになっています。 <!DOCTYPE html> <html> <head> <title>Nchak</title> <%= stylesheet_link_tag :all %> <%= javascript_include_tag :defaults %> <%= csrf_meta_tag %...
1.1 Really Quick Start Question: I’ve installed RubyGems and I want to install Rails (for example). How do I do that? Answer: gem install rails 1.2 What is a Gem? A gem is a packaged Ruby application or library. It has a name (e.g. rake ) and a version (e.g. 0.4.16 ). Gems are managed...
In these instances, the ideal situation would be to cherry-pick individual enhancements and use them in your existing Sinatra application. Fortunately, Padrino is committed to allowing you to do exactly that! Each major component within Padrino can be used in isolation and applied to ...
A few weeks ago episodes 235 [watch , read ] and 236 [watch , read ] covered OmniAuth. OmniAuth provides a great way to integrate third-party authentication services such as Twitter and Facebook into your Rails applications. The scenario we presented in those episodes was rather compl...
Overview Download Tools Browser Documentation Support IronRuby Get help from the community Report a bug If you encounter a bug in IronRuby, or would like to ask for a feature, please submit an issue on the IronRuby CodePlex project . Take a look through the existing issues to see if o...
class ProductsDatatable delegate :params, :h, :link_to, :number_to_currency, to: :@view def initialize(view) @view = view end def as_json(options = {}) { sEcho: params[:sEcho].to_i, iTotalRecords: Product.count, iTotalDisplayRecords: products.total_entries, aaData: data } end private ...
jstdutil 0.3.12 Thin wrapper over Google's JsTestDriver that adds colors and autotest install gem install jstdutil Download Documentation Subscribe Stats Authors Christian Johansen 8,942 total downloads 343 for this version Owners Links Homepage Bundler gem "jstdutil", "~> 0.3.12" Ver...
Hi, I'm confused, I get this error by entering an IPv6 address in the set_real_ip_from directive: nginx: [emerg] "set_real_ip_from" supports IPv4 only in /usr/local/nginx/conf/nginx.conf:65 But according to the changelog, that directive should support IPv6 since nginx 0.8.22: Changes ...
# アプリケーションが http://example.com/example で動作している場合 get '/foo' do request.body # クライアントによって送信されたリクエストボディ(下記参照) request.scheme # "http" request.script_name # "/example" request.path_info # "/foo" request.port # 80 request.request_method # "GET" request.query_string # "" request.content_le...
今回はあまり具体的な作業内容には立ち入らずに基本的な流れだけを説明します。例として、架空の企業サイトを制作することにしましょう。 最初にすることは、サイトの企画書や設計書をよく調べて、サイトを構成するページのデザインをいくつかのパターン に分類するという作業です。Railsで作るかどうかにかかわらず、これは常に必要な手順ですね。 例えば、プレスリリースやIRのページは一定の規則に従ったページデザインになっているはずです。これらをパターンとして認識し、整理してください。パターンの数が多ければ更にカテゴリーに分ける必要があるかもしれません。ただし、後で変更できるので、...
Ruby on Rails 3.2 を Ubuntu にインストールする手順をかなり丁寧に説明してみました 【Rails 雑感】 (2012/04/22) Ruby on Railsで複合キーを扱う(7) -- 補遺 【Rails 雑感】 (2012/04/01) Ruby on Railsで複合キーを扱う(6) -- 最終回 【Rails 雑感】 (2012/03/31) Ruby on Railsで複合キーを扱う(5) 【Rails 雑感】 (2012/03/29) Ruby on Railsで複合キーを扱う(4) 【Rails 雑感】 (2012/03/28...