flash_rails_messages 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/lib/flash_rails_messages/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba9acc1b60b8fc0d96d578d7dd2e88f7eacab3f2
|
4
|
+
data.tar.gz: b8760c7385bfafdfb12da84b5e57542886d66122
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57dadbbf6ab066d18eb74d22d4751c0fa804c1c35efb8c45eb468178c7a080f570b891f9b6f0c76396f0e31a1369d95f89b591773a7f6465679b9528cc91859f
|
7
|
+
data.tar.gz: c6212427be6a71c368a84cf949c189ac0686c9e1e21a1fc0cdf1a7ce9f2f02e738f6658378962f95f73d9f83c50954882987a01fcc561a156112f7c0d4c22d5a
|
data/README.md
CHANGED
@@ -27,8 +27,7 @@ You only need to add this line wherever you want to display the messages:
|
|
27
27
|
You can add the line above in your html in multiple places.
|
28
28
|
|
29
29
|
|
30
|
-
The flash messages are displayed according to the flash type.
|
31
|
-
By default shows a yellow alert.
|
30
|
+
The flash messages are displayed according to the flash type. By default shows a yellow alert.
|
32
31
|
|
33
32
|
**success**
|
34
33
|
- Shows a green alert
|
@@ -43,12 +42,17 @@ By default shows a yellow alert.
|
|
43
42
|
|
44
43
|
By the way, the alerts are customizable. They will have a specific class according to the flash key. Example...
|
45
44
|
|
46
|
-
A flash message like this...
|
47
|
-
|
48
45
|
flash[:whatever] = "Some flash rails message"
|
49
46
|
|
50
47
|
Will generate a html class in the alert wrapper like this `alert-whatever` to customize the css style.
|
51
48
|
|
49
|
+
## Adding HTML elements
|
50
|
+
|
51
|
+
The alerts that will be generated can include html elements. You just add html elements in the flash message.
|
52
|
+
Example...
|
53
|
+
|
54
|
+
flash[:success] = "<strong>This text will be bold</strong> and this one will be normal"
|
55
|
+
|
52
56
|
## Contributing
|
53
57
|
|
54
58
|
1. Fork it
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flash_rails_messages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alejandro Gutiérrez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|