Skip to content

Commit 79e9e5e

Browse files
committed
add slim環境導入 とりあえずhome/index.html.erb -> home/index.html.slimにしてみた
1 parent 5cd18d3 commit 79e9e5e

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ ruby '2.2.0'
55
gem 'rails', '4.2.1'
66
# Use SCSS for stylesheets
77
gem 'sass-rails', '~> 5.0'
8-
gem 'compass-rails', '~> 2.0.4'
98
# Use Uglifier as compressor for JavaScript assets
109
gem 'uglifier', '>= 1.3.0'
1110
# Use CoffeeScript for .coffee assets and views
@@ -42,6 +41,9 @@ gem 'devise', '~> 3.5.1'
4241
gem 'paperclip', '~> 4.3.0'
4342
gem 'aws-sdk', '< 2.0'
4443

44+
gem 'compass-rails', '~> 2.0.4'
45+
gem 'slim-rails', '~> 3.0.1'
46+
4547
group :development, :test do
4648
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
4749
gem 'byebug'

Gemfile.lock

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ GEM
184184
simple_form (3.1.0)
185185
actionpack (~> 4.0)
186186
activemodel (~> 4.0)
187+
slim (3.0.6)
188+
temple (~> 0.7.3)
189+
tilt (>= 1.3.3, < 2.1)
190+
slim-rails (3.0.1)
191+
actionmailer (>= 3.1, < 5.0)
192+
actionpack (>= 3.1, < 5.0)
193+
activesupport (>= 3.1, < 5.0)
194+
railties (>= 3.1, < 5.0)
195+
slim (~> 3.0)
187196
spring (1.3.6)
188197
sprockets (2.12.3)
189198
hike (~> 1.2)
@@ -195,6 +204,7 @@ GEM
195204
activesupport (>= 3.0)
196205
sprockets (>= 2.8, < 4.0)
197206
sqlite3 (1.3.10)
207+
temple (0.7.6)
198208
thor (0.19.1)
199209
thread_safe (0.3.5)
200210
tilt (1.4.1)
@@ -237,6 +247,7 @@ DEPENDENCIES
237247
sdoc (~> 0.4.0)
238248
seed-fu (~> 2.3.5)
239249
simple_form
250+
slim-rails (~> 3.0.1)
240251
spring
241252
sqlite3
242253
turbolinks

app/views/home/index.html.erb

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/views/home/index.html.slim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
h2 Home
2+
3+
ul
4+
li = link_to 'ユーザ一覧', users_path
5+
li = link_to 'イベント一覧', events_path

0 commit comments

Comments
 (0)