Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use shorter syntax of render where possible.

  • Loading branch information...
commit 356b883522da534945b7217f1a5eaf064ecd75a3 1 parent 64c50dc
@ugisozols ugisozols authored
View
2  app/views/refinery/inquiries/admin/inquiries/_submenu.html.erb
@@ -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" %>
View
2  app/views/refinery/inquiries/admin/inquiries/index.html.erb
@@ -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>
View
4 app/views/refinery/inquiries/admin/settings/edit.html.erb
@@ -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 %>
View
2  app/views/refinery/inquiries/inquiries/new.html.erb
@@ -29,4 +29,4 @@
<% end %>
</div>
<% end %>
-<%= render :partial => "/refinery/content_page" %>
+<%= render "/refinery/content_page" %>
View
2  app/views/refinery/inquiries/inquiries/thank_you.html.erb
@@ -1 +1 @@
-<%= render :partial => "/refinery/content_page" %>
+<%= render "/refinery/content_page" %>
Please sign in to comment.
Something went wrong with that request. Please try again.