OSDN Git Service

途中経過
authorshimada <shimada.cake@gmail.com>
Sat, 15 May 2010 07:54:54 +0000 (16:54 +0900)
committershimada <shimada.cake@gmail.com>
Sat, 15 May 2010 07:54:54 +0000 (16:54 +0900)
app/views/layouts/base.html.erb [new file with mode: 0644]
app/views/song/index.html.erb [new file with mode: 0644]

diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb
new file mode 100644 (file)
index 0000000..162df39
--- /dev/null
@@ -0,0 +1,10 @@
+<html>
+<head>
+  <meta http-equiv="content-type" content="text/html; charset=utf-8">
+  <%= stylesheet_link_tag "base" %>  
+  <%= yield :head %>
+</head>
+<body>
+  <%= yield %>
+</body>
+</html>
diff --git a/app/views/song/index.html.erb b/app/views/song/index.html.erb
new file mode 100644 (file)
index 0000000..001239c
--- /dev/null
@@ -0,0 +1,10 @@
+<% content_for :head do -%>
+  <title>Praise DATABASE</title>
+<% end -%>
+<h1 id="heading">Praise DATABASE</h1>
+
+<% form_for :search, :url => search_song_url do |f| -%>
+  <%= f.label :word, '検索(search)' %>
+  <%= f.text_field 'word' -%>
+  <%= f.submit 'search' %>
+<% end -%>