Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= link_to 'New House', new_house_path %>
- <h1><%= @house.name %></h1>
- <p><%= @house.street %> @ <%= @house.zipcode %></p>
- <%= observe_form("edit_house_1", :frequency => 0.10, :function => "alert('Element changed')") %>
- <% @house.current_residents.each_with_index do |resident, i| %>
- <p>
- <%= @residents_names[i] %>
- <% unless resident.is_approve_for_house?(@house) or resident.id == @user.id %>
- <%= link_to_remote "(approve this user)", :url => resident_path(resident), :method => 'put' %>
- <% end %>
- </p>
- <% end %>
- <% form_for @user.houses[0] do |f| %>
- <%= f.select( :name, @user.houses.collect { |h| [h.name, h.id] } ) %>
- <% end %>
Add Comment
Please, Sign In to add comment