RbFormBasic

<div class="col-md-offset-3 row"> <%= form_for($NombreVariable$, url: $url$, :class=> "form-inline" )do |f| %> <div class="form-group"> <div class="col-md-3"> <%= f.text_field :Nombrecampo1, class:'form-control', placeholder: 'TextoHolder' %> </div> <div class="col-md-3"> <%= f.text_area :NombreTextarea, class:'form-control', placeholder: 'area De Texto', size: '60x12' %> </div> <div> <%= f.select :NombreSelect, {'opcion1'=>'opcion1'}, { :include_blank => true}, :required=>'false', :class => '' %> </div> <div> <%= f.check_box :nombreradio %> <%= f.label :nombreradio, "CheckBox 1" %><br /> <%= f.check_box :nombreradio %> <%= f.label :nombreradio, "CheckBox 2" %> </div> <div> <%= f.radio_button :NombreRadio, 'Valor1', {:checked => true} %> Etiqueta </label><br /> <%= f.radio_button :NombreRadio, 'Valor2', {:checked => false} %>Etiqueta </label><br /> </div> </div> <% end %> </div>
Formulario basico en Rails

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.