Sha256: ef5048dd1fa694f80255d4ee91a2ef5053bb1099714e27a4ea45967db78469fa
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
<% @records.each do |record| %> <% assignments = {} %> <% if !params[:fill].nil? %> <% params[:fill].each do |key, value| %> <% assignments[value] = eval("record.#{key}") %> <% end %> <% end %> <div class="row <%= cycle("even", "odd") %>"> <% if params[:method_names] %> <% params[:method_names].each do |method_name| %> <div class="cell"> <% field_class = eval("record.#{method_names}.class") rescue nil %> <%= link_to( (field_class == TrueClass) | (field_class== FalseClass) ? check_box_tag(method_name , eval("record."+method_name) , eval("record."+method_name) , :disabled=>true) : eval("record."+method_name)||'', { :controller => :looking_for, :action => :assign_and_close, :assignments => assignments }, :remote=> true) rescue '' %> </div> <% end %> <% end %> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
looking_for-0.2.0 | app/views/looking_for/_results.html.erb |