Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% form_for @house do |f| %>
- <%= f.select(:id, @user.houses.collect { |h| [h.name, h.id] }, {}, {:onchange => "this.form.submit()"}) %>
- <% end %>
- ## This obviously will go to edit. How should i change it.
Add Comment
Please, Sign In to add comment