Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'ramaze'
- class MyController < Ramaze::Controller
- map '/'
- helper :blue_form
- def index
- # BlueForm requires the passed object to respond_to? key names
- @result = OpenStruct.new(request.subset(:textname, :textanother))
- form_for(@result, :method => :post) do |f|
- f.fieldset do
- f.g.div(:class => "control-group") do
- f.input_text 'Text label', :textname
- f.input_text 'Another Text label', :textanother
- f.input_submit 'Post !'
- end
- end
- end
- end
- end
- Ramaze.start
Add Comment
Please, Sign In to add comment