diff --git a/app/assets/images/ramen.jpg b/app/assets/images/ramen.jpg new file mode 100644 index 0000000..736803b Binary files /dev/null and b/app/assets/images/ramen.jpg differ diff --git a/app/assets/javascripts/ramen.js.coffee b/app/assets/javascripts/ramen.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/ramen.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/ramen.css.scss b/app/assets/stylesheets/ramen.css.scss new file mode 100644 index 0000000..a807476 --- /dev/null +++ b/app/assets/stylesheets/ramen.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the ramen controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/ramen_controller.rb b/app/controllers/ramen_controller.rb new file mode 100644 index 0000000..f567733 --- /dev/null +++ b/app/controllers/ramen_controller.rb @@ -0,0 +1,4 @@ +class RamenController < ApplicationController + def index + end +end diff --git a/app/helpers/ramen_helper.rb b/app/helpers/ramen_helper.rb new file mode 100644 index 0000000..0f80cf7 --- /dev/null +++ b/app/helpers/ramen_helper.rb @@ -0,0 +1,2 @@ +module RamenHelper +end diff --git a/app/views/ramen/index.html.erb b/app/views/ramen/index.html.erb new file mode 100644 index 0000000..7cf837e --- /dev/null +++ b/app/views/ramen/index.html.erb @@ -0,0 +1,3 @@ +

Hello ラーメン

+ +<%= image_tag "ramen.jpg" %> \ No newline at end of file diff --git a/app/views/static_pages/home.html.erb b/app/views/static_pages/home.html.erb index 93338e4..53f8f32 100644 --- a/app/views/static_pages/home.html.erb +++ b/app/views/static_pages/home.html.erb @@ -1,3 +1,3 @@
- + <%= link_to "ボタン", ramen_path %>
diff --git a/config/routes.rb b/config/routes.rb index a55bd23..9e0b957 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,10 @@ Yochigaya::Application.routes.draw do root 'static_pages#home' get 'static_pages/help' + + resources :ramen, only: ['index'] do + end + # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes".