z, ? | toggle help (this) |
space, → | next slide |
shift-space, ← | previous slide |
d | toggle debug mode |
## <ret> | go to slide # |
c, t | table of contents (vi) |
f | toggle footer |
r | reload slides |
n | toggle notes |
p | run preshow |
P | toggle pause |
<tbody>
<% @users.each do |user|%>
<tr id="<%= dom_id user %>">
<%- locals = {:user => user} %>
<%= hook :admin_users_index_rows, locals do %>
<td width="350px"><%=link_to user.email, object_url(user) %></td>
<% end %>
<td>
<%= hook :admin_users_index_row_actions, locals do %>
<%= link_to_edit user %>
<%= link_to_delete user %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
class Cart::Login < User::Form
def to_html
h3 :'.login'
p :'.blurbs.login'
p :'.blurbs.register'
super
end
protected
def form_arguments
[User.new, { :as => resource_name, :url => session_path(resource_name), :html => { :class => 'sign_in' } }]
end
end
$('h3').insertBefore($('.prehead'));
Deface::Override.new(
:virtual_path => "shared/_products",
:insert_bottom => "#products_list_item",
:text => '<div class="availability">
<%= product.on_hand %> pcs
</div>',
:name => "products_list_item_availability")
"I've tested Deface with Refinery a while ago and it worked no problem. It's really just a matter of including the gem and creating the overrides in the relevant app/overrides directory." -- Brian Quinn, autor Deface
Deface::Override.new(
:virtual_path => "posts/index",
:surround => "ul.posts",
:text => "<% cache('foo') do %>
<%= render_original %>
<% end %>",
:name => "Posts#index")