2014-11-05から1日間の記事一覧
以前の記事で、dotinstallを勉強してる途中にでてきた疑問点の考察。 ルーティングをみてみると、 ▶ rake routes Prefix Verb URI Pattern Controller#Action projects GET /projects(.:format) projects#index POST /projects(.:format) projects#create ne…
リポジトリはここ。 https://github.com/totzYuta/dotinstall_ruby-on-rails エピソードごとにコミットするようにした。 今回は新規作成機能を実装する。 流れは以下のようになってる そのページへのリンクを作成 newアクションを定義 遷移先view(new)を作成…
リポジトリはここ。 https://github.com/totzYuta/dotinstall_ruby-on-rails エピソードごとにコミットするようにした。 routing リクエストされたURLに対応してどのアクションを実行するのか設定をする config/routes.rbに以下を追加 root 'projects#index'…
リポジトリはここ。 https://github.com/totzYuta/dotinstall_ruby-on-rails エピソードごとにコミットするようにした。 うまくrailに乗れるようになるために命名規則は強調した 目次 目次 Model Modelの作成 migrate 便利なコマンド Controller/View Contro…