avo-setup 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
data/lib/avo-setup/version.rb
CHANGED
@@ -8,13 +8,6 @@ module Avo
|
|
8
8
|
def generate_layout
|
9
9
|
copy_file "stylesheet.css", "public/stylesheets/#{file_name}.css" if options.stylesheet?
|
10
10
|
template "layout.html.erb", "app/views/layouts/#{file_name}.html.erb"
|
11
|
-
if yes?("Would you like to install Devise?")
|
12
|
-
gem("devise")
|
13
|
-
generate("devise:install")
|
14
|
-
model_name = ask("What would you like the user model to be called? [user]")
|
15
|
-
model_name = "user" if model_name.blank?
|
16
|
-
generate("devise", model_name)
|
17
|
-
end
|
18
11
|
end
|
19
12
|
|
20
13
|
private
|
@@ -1 +1,19 @@
|
|
1
|
-
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title><%%= content_for?(:title) ? yield(:title) : "Untitled" %></title>
|
5
|
+
<%%= stylesheet_link_tag "<%= file_name %>" %>
|
6
|
+
<%%= javascript_include_tag :defaults %>
|
7
|
+
<%%= csrf_meta_tag %>
|
8
|
+
<%%= yield(:head) %>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<div id="container">
|
12
|
+
<%% flash.each do |name, msg| %>
|
13
|
+
<%%= content_tag :div, msg, :id => "flash_#{name}" %>
|
14
|
+
<%% end %>
|
15
|
+
<%%= content_tag :h1, yield(:title) if show_title? %>
|
16
|
+
<%%= yield %>
|
17
|
+
</div>
|
18
|
+
</body>
|
19
|
+
</html>
|