Permalink
Browse files

append

  • Loading branch information...
1 parent 8ff104e commit 09bfc57b0264d14b0a17f93a82f2ed8a62d48c29 @yuyalush committed Jan 25, 2012
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,155 @@
+
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
+ <title>easyCRMへ追加開発 &mdash; RubyForITMS v20110911 documentation</title>
+ <link rel="stylesheet" href="static/default.css" type="text/css" />
+ <link rel="stylesheet" href="static/pygments.css" type="text/css" />
+ <script type="text/javascript">
+ var DOCUMENTATION_OPTIONS = {
+ URL_ROOT: '',
+ VERSION: '20110911',
+ COLLAPSE_INDEX: false,
+ FILE_SUFFIX: '.html',
+ HAS_SOURCE: true
+ };
+ </script>
+ <script type="text/javascript" src="static/jquery.js"></script>
+ <script type="text/javascript" src="static/underscore.js"></script>
+ <script type="text/javascript" src="static/doctools.js"></script>
+ <link rel="top" title="RubyForITMS v20110911 documentation" href="index.html" />
+ <link rel="next" title="セットアップと動作確認" href="set_up_and_verification.html" />
+ <link rel="prev" title="CRMを作ってみよう!" href="structure_of_easy_crm.html" />
+ </head>
+ <body>
+ <div class="related">
+ <h3>Navigation</h3>
+ <ul>
+ <li class="right" style="margin-right: 10px">
+ <a href="genindex.html" title="General Index"
+ accesskey="I">index</a></li>
+ <li class="right" >
+ <a href="set_up_and_verification.html" title="セットアップと動作確認"
+ accesskey="N">next</a> |</li>
+ <li class="right" >
+ <a href="structure_of_easy_crm.html" title="CRMを作ってみよう!"
+ accesskey="P">previous</a> |</li>
+ <li><a href="index.html">RubyForITMS v20110911 documentation</a> &raquo;</li>
+ </ul>
+ </div>
+
+ <div class="document">
+ <div class="documentwrapper">
+ <div class="bodywrapper">
+ <div class="body">
+
+ <div class="section" id="easycrm">
+<h1>easyCRMへ追加開発<a class="headerlink" href="#easycrm" title="Permalink to this headline">¶</a></h1>
+<div class="section" id="id1">
+<h2>携帯、スマフォ対応<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
+<p>以下のプラグインを利用する。
+<a class="reference external" href="https://github.com/jpmobile/jpmobile">https://github.com/jpmobile/jpmobile</a></p>
+</div>
+<div class="section" id="csv">
+<h2>CSVダウンロード<a class="headerlink" href="#csv" title="Permalink to this headline">¶</a></h2>
+<p>FasterCSVを使う</p>
+<ol class="arabic simple">
+<li>Gemfileに
+gem &#8216;fastercsv&#8217;</li>
+<li>bundle install</li>
+<li>使うコントローラーにて
+require &#8216;fastercsv&#8217;</li>
+<li>respond_toにて
+format.csv { send_data &#64;users.to_csv }</li>
+</ol>
+</div>
+<div class="section" id="id2">
+<h2>項目追加・削除<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
+<p>マイグレーションファイルを作成すること。
+rails generate migration Add&lt;Field&gt;To&lt;Table&gt; 列名:型
+rails generate migration Remove&lt;Field&gt;To&lt;table&gt; 列名</p>
+</div>
+<div class="section" id="id3">
+<h2>検索<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
+<p>入力欄を作って、controllerでは入力があった場合にのみ
+検索条件を加えるようにする。</p>
+</div>
+<div class="section" id="id4">
+<h2>メール配信<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
+<p>ActionMailerを使う。
+Gmailの時は設定ファイルの作り方に注意。</p>
+</div>
+</div>
+
+
+ </div>
+ </div>
+ </div>
+ <div class="sphinxsidebar">
+ <div class="sphinxsidebarwrapper">
+ <h3><a href="index.html">Table Of Contents</a></h3>
+ <ul>
+<li><a class="reference internal" href="#">easyCRMへ追加開発</a><ul>
+<li><a class="reference internal" href="#id1">携帯、スマフォ対応</a></li>
+<li><a class="reference internal" href="#csv">CSVダウンロード</a></li>
+<li><a class="reference internal" href="#id2">項目追加・削除</a></li>
+<li><a class="reference internal" href="#id3">検索</a></li>
+<li><a class="reference internal" href="#id4">メール配信</a></li>
+</ul>
+</li>
+</ul>
+
+ <h4>Previous topic</h4>
+ <p class="topless"><a href="structure_of_easy_crm.html"
+ title="previous chapter">CRMを作ってみよう!</a></p>
+ <h4>Next topic</h4>
+ <p class="topless"><a href="set_up_and_verification.html"
+ title="next chapter">セットアップと動作確認</a></p>
+ <h3>This Page</h3>
+ <ul class="this-page-menu">
+ <li><a href="sources/append_to_easy_crm.txt"
+ rel="nofollow">Show Source</a></li>
+ </ul>
+<div id="searchbox" style="display: none">
+ <h3>Quick search</h3>
+ <form class="search" action="search.html" method="get">
+ <input type="text" name="q" size="18" />
+ <input type="submit" value="Go" />
+ <input type="hidden" name="check_keywords" value="yes" />
+ <input type="hidden" name="area" value="default" />
+ </form>
+ <p class="searchtip" style="font-size: 90%">
+ Enter search terms or a module, class or function name.
+ </p>
+</div>
+<script type="text/javascript">$('#searchbox').show(0);</script>
+ </div>
+ </div>
+ <div class="clearer"></div>
+ </div>
+ <div class="related">
+ <h3>Navigation</h3>
+ <ul>
+ <li class="right" style="margin-right: 10px">
+ <a href="genindex.html" title="General Index"
+ >index</a></li>
+ <li class="right" >
+ <a href="set_up_and_verification.html" title="セットアップと動作確認"
+ >next</a> |</li>
+ <li class="right" >
+ <a href="structure_of_easy_crm.html" title="CRMを作ってみよう!"
+ >previous</a> |</li>
+ <li><a href="index.html">RubyForITMS v20110911 documentation</a> &raquo;</li>
+ </ul>
+ </div>
+ <div class="footer">
+ &copy; Copyright 2011, Yuya Yoshida @ co-meeting Inc..
+ Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
+ </div>
+ </body>
+</html>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -66,9 +66,8 @@ <h1>Welcome to Ruby For ITMS&#8217;s documentation!<a class="headerlink" href="#
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="web_development.html">Webアプリケーション開発</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="web_development.html#id1">Webアプリケーションとは</a></li>
-<li class="toctree-l2"><a class="reference internal" href="web_development.html#rubyonrails">RubyOnRailsによるアプリケーションの構成</a></li>
-<li class="toctree-l2"><a class="reference internal" href="web_development.html#id2">Webアプリケーション開発を身に付けるロードマップ</a></li>
+<li class="toctree-l2"><a class="reference internal" href="web_development.html#id1">Webアプリケーション開発を身に付けるロードマップ</a></li>
+<li class="toctree-l2"><a class="reference internal" href="web_development.html#id2">Webアプリケーションとは</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="first_step_ruby.html">Ruby事始め</a><ul>
@@ -79,13 +78,23 @@ <h1>Welcome to Ruby For ITMS&#8217;s documentation!<a class="headerlink" href="#
<li class="toctree-l1"><a class="reference internal" href="second_step_rails.html">Rails事始め</a><ul>
<li class="toctree-l2"><a class="reference internal" href="second_step_rails.html#ruby-on-rails">Ruby On Railsとは</a></li>
<li class="toctree-l2"><a class="reference internal" href="second_step_rails.html#id1">Ruby On Railsの特徴</a></li>
+<li class="toctree-l2"><a class="reference internal" href="second_step_rails.html#mvc">MVC</a></li>
+<li class="toctree-l2"><a class="reference internal" href="second_step_rails.html#rubyonrails">RubyOnRailsによるアプリケーションの構成</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="structure_of_easy_crm.html">CRMを作ってみよう!</a><ul>
<li class="toctree-l2"><a class="reference internal" href="structure_of_easy_crm.html#easycrm">easyCRM</a></li>
<li class="toctree-l2"><a class="reference internal" href="structure_of_easy_crm.html#id1">easyCRMの構成</a></li>
</ul>
</li>
+<li class="toctree-l1"><a class="reference internal" href="append_to_easy_crm.html">easyCRMへ追加開発</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="append_to_easy_crm.html#id1">携帯、スマフォ対応</a></li>
+<li class="toctree-l2"><a class="reference internal" href="append_to_easy_crm.html#csv">CSVダウンロード</a></li>
+<li class="toctree-l2"><a class="reference internal" href="append_to_easy_crm.html#id2">項目追加・削除</a></li>
+<li class="toctree-l2"><a class="reference internal" href="append_to_easy_crm.html#id3">検索</a></li>
+<li class="toctree-l2"><a class="reference internal" href="append_to_easy_crm.html#id4">メール配信</a></li>
+</ul>
+</li>
<li class="toctree-l1"><a class="reference internal" href="set_up_and_verification.html">セットアップと動作確認</a><ul>
<li class="toctree-l2"><a class="reference internal" href="set_up_and_verification.html#id2">セットアップ</a></li>
<li class="toctree-l2"><a class="reference internal" href="set_up_and_verification.html#id3">動作確認</a></li>
@@ -126,6 +135,11 @@ <h1>Welcome to Ruby For ITMS&#8217;s documentation!<a class="headerlink" href="#
<li class="toctree-l2"><a class="reference internal" href="note_6_etc.html#id2">全ソースコードについて</a></li>
</ul>
</li>
+<li class="toctree-l1"><a class="reference internal" href="note_7_paas.html">ノート7:Railsの動くPaaS</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="note_7_paas.html#heroku">Heroku</a></li>
+<li class="toctree-l2"><a class="reference internal" href="note_7_paas.html#engine-yard">Engine Yard</a></li>
+</ul>
+</li>
</ul>
</div>
</div>
@@ -0,0 +1,135 @@
+
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
+ <title>ノート7:Railsの動くPaaS &mdash; RubyForITMS v20110911 documentation</title>
+ <link rel="stylesheet" href="static/default.css" type="text/css" />
+ <link rel="stylesheet" href="static/pygments.css" type="text/css" />
+ <script type="text/javascript">
+ var DOCUMENTATION_OPTIONS = {
+ URL_ROOT: '',
+ VERSION: '20110911',
+ COLLAPSE_INDEX: false,
+ FILE_SUFFIX: '.html',
+ HAS_SOURCE: true
+ };
+ </script>
+ <script type="text/javascript" src="static/jquery.js"></script>
+ <script type="text/javascript" src="static/underscore.js"></script>
+ <script type="text/javascript" src="static/doctools.js"></script>
+ <link rel="top" title="RubyForITMS v20110911 documentation" href="index.html" />
+ <link rel="prev" title="ノート6:その他" href="note_6_etc.html" />
+ </head>
+ <body>
+ <div class="related">
+ <h3>Navigation</h3>
+ <ul>
+ <li class="right" style="margin-right: 10px">
+ <a href="genindex.html" title="General Index"
+ accesskey="I">index</a></li>
+ <li class="right" >
+ <a href="note_6_etc.html" title="ノート6:その他"
+ accesskey="P">previous</a> |</li>
+ <li><a href="index.html">RubyForITMS v20110911 documentation</a> &raquo;</li>
+ </ul>
+ </div>
+
+ <div class="document">
+ <div class="documentwrapper">
+ <div class="bodywrapper">
+ <div class="body">
+
+ <div class="section" id="railspaas">
+<h1>ノート7:Railsの動くPaaS<a class="headerlink" href="#railspaas" title="Permalink to this headline">¶</a></h1>
+<div class="section" id="heroku">
+<h2>Heroku<a class="headerlink" href="#heroku" title="Permalink to this headline">¶</a></h2>
+<p><strong>Git用に公開鍵を準備する</strong></p>
+<p>cd C:Usersユーザ名
+mkdir .ssh
+cd C:Program FilesGitbin
+ssh-keygen -t rsa</p>
+<p><strong>Herokuのアカウント作成</strong></p>
+<p><a class="reference external" href="http://api.heroku.com/">http://api.heroku.com/</a></p>
+<p><strong>Gemをインストール</strong></p>
+<p>gem install heroku
+heroku keys:add</p>
+<p><strong>登録する</strong></p>
+<p>git init
+git add .
+git commit -a -m &#8220;app init&#8221;</p>
+<p>heroku create
+heroku addons:add sendgrid:starter
+git push heroku master
+heroku rake db:migrate
+heroku rake db:fixtures:load</p>
+<p><strong>動作確認</strong></p>
+<p><a class="reference external" href="http://api.heroku.com/myapps">http://api.heroku.com/myapps</a></p>
+</div>
+<div class="section" id="engine-yard">
+<h2>Engine Yard<a class="headerlink" href="#engine-yard" title="Permalink to this headline">¶</a></h2>
+</div>
+</div>
+
+
+ </div>
+ </div>
+ </div>
+ <div class="sphinxsidebar">
+ <div class="sphinxsidebarwrapper">
+ <h3><a href="index.html">Table Of Contents</a></h3>
+ <ul>
+<li><a class="reference internal" href="#">ノート7:Railsの動くPaaS</a><ul>
+<li><a class="reference internal" href="#heroku">Heroku</a></li>
+<li><a class="reference internal" href="#engine-yard">Engine Yard</a></li>
+</ul>
+</li>
+</ul>
+
+ <h4>Previous topic</h4>
+ <p class="topless"><a href="note_6_etc.html"
+ title="previous chapter">ノート6:その他</a></p>
+ <h3>This Page</h3>
+ <ul class="this-page-menu">
+ <li><a href="sources/note_7_paas.txt"
+ rel="nofollow">Show Source</a></li>
+ </ul>
+<div id="searchbox" style="display: none">
+ <h3>Quick search</h3>
+ <form class="search" action="search.html" method="get">
+ <input type="text" name="q" size="18" />
+ <input type="submit" value="Go" />
+ <input type="hidden" name="check_keywords" value="yes" />
+ <input type="hidden" name="area" value="default" />
+ </form>
+ <p class="searchtip" style="font-size: 90%">
+ Enter search terms or a module, class or function name.
+ </p>
+</div>
+<script type="text/javascript">$('#searchbox').show(0);</script>
+ </div>
+ </div>
+ <div class="clearer"></div>
+ </div>
+ <div class="related">
+ <h3>Navigation</h3>
+ <ul>
+ <li class="right" style="margin-right: 10px">
+ <a href="genindex.html" title="General Index"
+ >index</a></li>
+ <li class="right" >
+ <a href="note_6_etc.html" title="ノート6:その他"
+ >previous</a> |</li>
+ <li><a href="index.html">RubyForITMS v20110911 documentation</a> &raquo;</li>
+ </ul>
+ </div>
+ <div class="footer">
+ &copy; Copyright 2011, Yuya Yoshida @ co-meeting Inc..
+ Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
+ </div>
+ </body>
+</html>

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -65,6 +65,41 @@ <h2>Ruby On Railsの特徴<a class="headerlink" href="#id1" title="Permalink to
<p>Ruby on Railsは他のフレームワークに比べルールが厳密です。
例えば、ファイルを置く位置はすべて決められており、ファイル名についても規則があります。Railsはこの「ルール」に開発者が従うことを条件としますが、逆にいうとルールに従う場合最大限のサポートを約束してくれます。</p>
</div>
+<div class="section" id="mvc">
+<h2>MVC<a class="headerlink" href="#mvc" title="Permalink to this headline">¶</a></h2>
+<img alt="images/mvc.png" src="images/mvc.png" />
+</div>
+<div class="section" id="rubyonrails">
+<h2>RubyOnRailsによるアプリケーションの構成<a class="headerlink" href="#rubyonrails" title="Permalink to this headline">¶</a></h2>
+<p><strong>重要なフォルダ</strong></p>
+<p>app : 生成されたソース、自作のソースを置く場所</p>
+<p>config : 設定ファイル</p>
+<p>public : 画像、Javascriptのファイルを置く場所</p>
+<p><strong>表示されるまでの流れ</strong></p>
+<ol class="arabic simple">
+<li>ユーザーからリクエストが来る</li>
+<li>サーバがリクエストを受け付けて、ルールに従いソースを呼び出す(config/route.rb)</li>
+<li>結果の画面(つまりHTML)を作る
+(app/controllers/</li>
+<li>ユーザーへ送る</li>
+</ol>
+<p><strong>ルール</strong></p>
+<p>例:http:// アドレス / books / 1</p>
+<p>app/controller/books_controller.rbが呼ばれます。
+あとはリクエストの内容にしたがって</p>
+<blockquote>
+<div><ul class="simple">
+<li>一覧表示:index</li>
+<li>詳細表示:show</li>
+<li>編集画面:edit</li>
+<li>新規作成:new</li>
+</ul>
+</div></blockquote>
+<p>が呼び出されます。</p>
+<p>結果の出力は
+app/view/コントローラー名/上記の名前(indexやnew)
+が担当します。</p>
+</div>
</div>
@@ -78,6 +113,8 @@ <h3><a href="index.html">Table Of Contents</a></h3>
<li><a class="reference internal" href="#">Rails事始め</a><ul>
<li><a class="reference internal" href="#ruby-on-rails">Ruby On Railsとは</a></li>
<li><a class="reference internal" href="#id1">Ruby On Railsの特徴</a></li>
+<li><a class="reference internal" href="#mvc">MVC</a></li>
+<li><a class="reference internal" href="#rubyonrails">RubyOnRailsによるアプリケーションの構成</a></li>
</ul>
</li>
</ul>
Oops, something went wrong.

0 comments on commit 09bfc57

Please sign in to comment.