The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| <%= form_for(:user, :url => {:action => 'create', :controller=>"users"}, :class => "col s12") do |f| %> | |
| <% cities_array = @regiones.map { |city| [city[:nombre], city[:codigo]] } %> | |
| <%= f.select( :region, options_for_select(cities_array), {}, {}) %> | |
| <%= f.label :region %> | |
| <%= f.select(:comuna, [], {}, {}) %> | |
| <%= f.label :comuna %> | |
| <button type="submit" name="action">Siguiente</button> |