railz_lite 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c89ff0ff19ada2a09bfd2735696dcd83ea0d6452cb176c388d8f73f2d427cc5
|
4
|
+
data.tar.gz: 19af0a264b0b90bde7f35f7ee4603554b2859a444fc5354bfe060cb46e60cdf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad80911593eff8acf24ca6e5e80ba09860075694d880a8549514164f1ded5b4889df94cd82d1905d1ef28ee36a87329a74186468d0cbd0eb8618f6465650c193
|
7
|
+
data.tar.gz: d8ce5424801a719ef0e24d2cd078c7c33119331802fc73861673d5fa622e055c2b331d69296a5f18d9ef2849ed6ecd2454e08de5cf6f26ea1e2fd82605b2f0b5
|
@@ -46,7 +46,7 @@ module RailzLite
|
|
46
46
|
# pass the rendered html to render_content
|
47
47
|
def render(template_name)
|
48
48
|
dir_path = Dir.pwd
|
49
|
-
file_path = File.join(dir_path, 'views', "#{self.class.name.underscore}", "#{template_name.to_s}.html.erb")
|
49
|
+
file_path = File.join(dir_path, 'views', "#{self.class.name.underscore.split('_controller').first}", "#{template_name.to_s}.html.erb")
|
50
50
|
file = File.read(file_path)
|
51
51
|
template = ERB.new(file).result(binding)
|
52
52
|
render_content(template, 'text/html')
|
@@ -27,11 +27,11 @@ module RailzLite
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def add_welcome_view
|
30
|
-
template('welcome_view.index.html.erb', "#{project_name}/views/
|
30
|
+
template('welcome_view.index.html.erb', "#{project_name}/views/welcome/index.html.erb")
|
31
31
|
end
|
32
32
|
|
33
33
|
def add_public
|
34
|
-
copy_file('winter_fox_large.jpg', "#{project_name}/public")
|
34
|
+
copy_file('winter_fox_large.jpg', "#{project_name}/public/winter_fox_large.jpg")
|
35
35
|
end
|
36
36
|
|
37
37
|
def create_sql_file
|
data/lib/railz_lite/version.rb
CHANGED