daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest Apr 19th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <%= link_to 'New House', new_house_path %>
  2. <h1><%= @house.name %></h1>
  3. <p><%= @house.street %> @ <%= @house.zipcode %></p>
  4.  
  5. <%= observe_form("house_name", :frequency => 0.10, :function => "alert('Element changed')") %>
  6.  
  7. <% @house.current_residents.each_with_index do |resident, i| %>
  8.     <p>
  9.         <%= @residents_names[i] %>
  10.         <% unless resident.is_approve_for_house?(@house) or resident.id == @user.id %>
  11.             <%= link_to_remote "(approve this user)", :url => resident_path(resident), :method => 'put' %>
  12.         <% end %>
  13.     </p>
  14. <% end %>
  15.  
  16. <%= select(:house, :name, @user.houses.collect { |h| [h.name, h.id] }) %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top