frontview 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/lib/frontview/contents/style_content.rb +1 -0
- data/lib/frontview/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 771f0d21d780f93283c5cc5f6df42d50307f72f1523af3c7b6721f545d16bd57
|
4
|
+
data.tar.gz: 3ef41280f05a1d59c5fcbdf2bb8e400e81fc90594540412d3a9cbfcb0d11725f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 206a74e6835b2723122957677fd9c3208f9e40a50834a942785248385f579ddb20ebd25d5899fe434915cebf3b7f9e9d73e89794d665f0aa494f8d474d1fe9dc
|
7
|
+
data.tar.gz: 8c3d8d150a2f44b99c92ec0b17def56e0433c544eb5932e0f033a99c446e858b5f05f2422236875ed73b5fc4cc7481d35e7c3787f1212dfeb69b8f65dbbd0813
|
data/README.md
CHANGED
@@ -5,16 +5,16 @@ This is frontview gem, a gem that gives the front-end template to the rails 6 ap
|
|
5
5
|
### Installation
|
6
6
|
Add this line to your application's Gemfile:
|
7
7
|
```
|
8
|
-
|
8
|
+
gem 'frontview'
|
9
9
|
```
|
10
10
|
And then execute:
|
11
11
|
```
|
12
|
-
|
12
|
+
bundle install
|
13
13
|
```
|
14
14
|
### Usage
|
15
15
|
Run scaffold. Lets assume our model is 'home' which has a 'title' and a 'body'(Optional)
|
16
16
|
```
|
17
|
-
|
17
|
+
rails g scaffold home title:string body:text
|
18
18
|
```
|
19
19
|
Delete scaffold.scss, from (assets/stylesheets/scaffold.scss).
|
20
20
|
Optional:
|
@@ -27,15 +27,15 @@ Delete all the files in views/homes except index.html.erb
|
|
27
27
|
Generate the necessary files and folders by:
|
28
28
|
N/B: You will be prompted to give the name of your model, In this case you'll write 'home' and press enter. All the files will then be in place.
|
29
29
|
```
|
30
|
-
|
30
|
+
rails g frontview:install
|
31
31
|
```
|
32
32
|
Create & Migrate DB
|
33
33
|
```
|
34
|
-
|
34
|
+
rails db:create && rails db:migrate
|
35
35
|
```
|
36
36
|
Finally run the rails server and you are good to go:
|
37
37
|
```
|
38
|
-
|
38
|
+
rails s
|
39
39
|
```
|
40
40
|
Access your web in: localhost:3000
|
41
41
|
|
data/lib/frontview/version.rb
CHANGED