RubyGems
npm
Organizations
Log in
Sign up
RubyGems
slim-rails
Versions diffs
0.2.0 → 0.2.1
slim-rails 0.2.0 → 0.2.1
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (5)
hide
show
data/README.md
+3
-0
data/lib/generators/slim/scaffold/templates/edit.html.slim
+1
-1
data/lib/generators/slim/scaffold/templates/show.html.slim
+1
-1
data/slim-rails.gemspec
+1
-1
metadata
+1
-1
data/README.md
CHANGED
Viewed
@@ -6,4 +6,7 @@ To use it, add this line to your Gemfile:
6
6
gem "slim-rails"
7
7
8
8
And that's it.
9
+
10
+
From the version 0.2.0, there is no need to include gem "slim" in your Gemfile.
11
+
9
12
Every time you generate a controller or scaffold, you'll get Slim templates.
data/lib/generators/slim/scaffold/templates/edit.html.slim
CHANGED
Viewed
@@ -3,6 +3,6 @@ h1 Editing <%= singular_table_name %>
3
3
== render 'form'
4
4
5
5
= link_to 'Show', @<%= singular_table_name %>
6
-
`|
6
+
'|
7
7
= link_to 'Back', <%= index_helper %>_path
8
8
data/lib/generators/slim/scaffold/templates/show.html.slim
CHANGED
Viewed
@@ -7,5 +7,5 @@ p
7
7
<% end -%>
8
8
9
9
= link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)
10
-
`|
10
+
'|
11
11
= link_to 'Back', <%= index_helper %>_path
data/slim-rails.gemspec
CHANGED
Viewed
@@ -5,7 +5,7 @@
5
5
6
6
Gem::Specification.new do |s|
7
7
s.name = %q{slim-rails}
8
-
s.version = "0.2.
0
"
8
+
s.version = "0.2.
1
"
9
9
10
10
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
s.authors = ["Leonardo Almeida"]
metadata
CHANGED
Viewed
@@ -2,7 +2,7 @@
2
2
name: slim-rails
3
3
version: !ruby/object:Gem::Version
4
4
prerelease:
5
-
version: 0.2.
0
5
+
version: 0.2.
1
6
6
platform: ruby
7
7
authors:
8
8
- Leonardo Almeida