Permalink
Browse files

Use shorter syntax of render where possible.

  • Loading branch information...
1 parent 64c50dc commit 356b883522da534945b7217f1a5eaf064ecd75a3 @ugisozols ugisozols committed May 2, 2012
@@ -1,7 +1,7 @@
<div id='actions'>
<ul>
<li>
- <%= render :partial => "/refinery/admin/search", :locals => {:url => request.path} %>
+ <%= render "/refinery/admin/search", :url => request.path.gsub("//", "/") %>
</li>
<li <%= "class='selected'" if params[:action] == "index" %>>
<%= link_to t('.inbox'), refinery.inquiries_admin_inquiries_path, :class => "email_icon" %>
@@ -1,4 +1,4 @@
-<%= render :partial => "submenu" %>
+<%= render "submenu" %>
<div id='records'>
<% if searching? %>
<h2><%= t('refinery.admin.search.results_for', :query => params[:search]) %></h2>
@@ -1,5 +1,5 @@
<% if @setting.name.to_s.titleize == "Inquiry Notification Recipients" %>
- <%= render :partial => "notification_recipients_form", :locals => {:edit => true} -%>
+ <%= render "notification_recipients_form", :edit => true -%>
<% else %>
- <%= render :partial => "confirmation_email_form", :locals => {:edit => true} -%>
+ <%= render "confirmation_email_form", :edit => true -%>
<% end %>
@@ -29,4 +29,4 @@
<% end %>
</div>
<% end %>
-<%= render :partial => "/refinery/content_page" %>
+<%= render "/refinery/content_page" %>
@@ -1 +1 @@
-<%= render :partial => "/refinery/content_page" %>
+<%= render "/refinery/content_page" %>

0 comments on commit 356b883

Please sign in to comment.