wheels 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/models/feedback.rb +1 -3
- data/app/views/feedbacks/_form.html.haml +3 -3
- data/app/views/feedbacks/new.html.haml +4 -3
- data/app/views/pages/show.html.haml +9 -3
- data/lib/wheels/routes.rb +6 -1
- data/wheels.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
data/app/models/feedback.rb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
class Feedback < ActiveRecord::Base
|
2
2
|
validates :email, :presence=>true, :email=>true
|
3
3
|
validates :name, :presence=>true, :length=>{:minimum=>6}
|
4
|
-
validates :phone
|
4
|
+
validates :phone
|
5
5
|
validates :subject, :presence=>true
|
6
6
|
|
7
|
-
|
8
|
-
|
9
7
|
def self.jq_validation
|
10
8
|
JQueryValidator.new
|
11
9
|
end
|
@@ -26,12 +26,12 @@
|
|
26
26
|
.field
|
27
27
|
= f.label :subject
|
28
28
|
= f.text_field :subject
|
29
|
+
.field
|
30
|
+
= label_tag "Would you like a response?"
|
31
|
+
= f.check_box :want_response
|
29
32
|
.field
|
30
33
|
= f.label :message
|
31
34
|
= f.text_area :message
|
32
|
-
.field
|
33
|
-
= label_tag "Would you like to hear back from us?"
|
34
|
-
= f.check_box :want_response
|
35
35
|
.actions
|
36
36
|
= f.submit 'Send feedback'
|
37
37
|
|
@@ -1,9 +1,15 @@
|
|
1
1
|
= render :partial => "show"
|
2
2
|
= render :partial => "child_pages_links"
|
3
3
|
|
4
|
-
- if @
|
5
|
-
=
|
6
|
-
%
|
4
|
+
- if @sitemap && (@sitemap.parent != Sitemap.main_menu)
|
5
|
+
= nav_content do
|
6
|
+
%ul.parent_page
|
7
|
+
%li= link_to @sitemap.parent.menu_text, @sitemap
|
8
|
+
- if @sitemap && !@sitemap.children.empty?
|
9
|
+
= nav_content do
|
10
|
+
%ul.child_pages
|
11
|
+
- @sitemap.children.each do |child|
|
12
|
+
%li= link_to child.menu_text, child
|
7
13
|
|
8
14
|
- unless @page.attachments.empty?
|
9
15
|
= sidebar_content do
|
data/lib/wheels/routes.rb
CHANGED
data/wheels.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{wheels}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tyler Gannon"]
|
12
|
-
s.date = %q{2010-09-
|
12
|
+
s.date = %q{2010-09-13}
|
13
13
|
s.description = %q{Call rails generate wheels.}
|
14
14
|
s.email = %q{tgannon@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 10
|
9
|
+
version: 0.1.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tyler Gannon
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-09-
|
17
|
+
date: 2010-09-13 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|