views:

121

answers:

0

Run into a bit of a problem when submitting a Rails form while using iUI. When submitting a form using the form_for helper in Rails, it jumps to a new separate page and loses it's original formatting. This is a problem for iUI which uses some fancy javascript/css etc to give the web app a nice native iPhone feel. Anyone got any ideas?

    <% form_for(@status) do |f| %>

 <%= f.select(:status, %w{ Option1 Option2 Option3 })%>

 <button type="submit">
        Submit
 </button>

<% end %>