Permalink
Browse files

Form fixes

  • Loading branch information...
fredwu committed Jul 16, 2012
1 parent 1d8718e commit fa8e451e3b7054a291433f12be457cf8ed09de73
@@ -54,6 +54,11 @@ legend {
font-size: 12px;
line-height: 24px;
}
+
+ &.hero-legend {
+ margin: 0;
+ border: none;
+ }
}
.nav-label {
@@ -85,4 +90,4 @@ legend {
white-space: pre;
word-wrap: normal;
}
-}
+}
@@ -8,7 +8,7 @@ class FormBuilder < AbstractController::Base
def initialize(params)
flush_output_buffer
- @_buffer = ''
+ @_buffer = '<legend class="hero-legend"></legend>'
add_to_buffer(params)
end
@@ -20,7 +20,9 @@ def html
def add_to_buffer(params, parent_labels = [])
params.each do |label, value|
- label = "[#{label}]"
+ if parent_labels.present?
+ label = "[#{label}]"
+ end
new_parent_labels = parent_labels.clone << label
@@ -10,6 +10,10 @@
end
ApiTaster.routes do
+ ApiTaster.global_params = {
+ :version => 1
+ }
+
get '/i_dont_exist_anymore', {
:hello => 'world'
}

0 comments on commit fa8e451

Please sign in to comment.