bowtie 0.2 → 0.2.5
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.
- data/README.rdoc +1 -1
- data/bowtie.gemspec +1 -1
- data/lib/bowtie/views/errors.erb +8 -2
- metadata +2 -1
data/README.rdoc
CHANGED
|
@@ -17,7 +17,7 @@ Mount Bowtie wherever you want by editing your config.ru file, optionally includ
|
|
|
17
17
|
require 'myapp'
|
|
18
18
|
require 'bowtie'
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
BOWTIE_AUTH = {:user => 'admin', :pass => '12345' }
|
|
21
21
|
|
|
22
22
|
app = Rack::Builder.new {
|
|
23
23
|
map "/admin" do
|
data/bowtie.gemspec
CHANGED
data/lib/bowtie/views/errors.erb
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
<%
|
|
1
|
+
<% begin
|
|
2
|
+
|
|
3
|
+
if @resource and @resource.errors.any? %>
|
|
2
4
|
|
|
3
5
|
<div class="errorlist">
|
|
4
6
|
|
|
@@ -10,4 +12,8 @@
|
|
|
10
12
|
|
|
11
13
|
</div>
|
|
12
14
|
|
|
13
|
-
<% end
|
|
15
|
+
<% end
|
|
16
|
+
|
|
17
|
+
rescue NoMethodError
|
|
18
|
+
# dm-validations not included
|
|
19
|
+
end %>
|