Skip to content

Commit

Permalink
Fixes _url routes to _path
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieugagne committed Apr 25, 2014
1 parent 225b41c commit 96f2f5c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/views/georgia/header/_media.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<% if can? :index, Ckeditor::Asset %>
<%= sidebar_navigation_link 'Media', georgia.media_index_url, controller: 'media', icon: 'picture-o' %>
<%= sidebar_navigation_link 'Media', georgia.media_index_path, controller: 'media', icon: 'picture-o' %>
<% end -%>
2 changes: 1 addition & 1 deletion app/views/georgia/header/_navigation.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<% if can? :index, Georgia::Menu %>
<%= sidebar_navigation_link 'Navigation', georgia.menus_url, controller: 'menus', icon: 'align-justify' %>
<%= sidebar_navigation_link 'Navigation', georgia.menus_path, controller: 'menus', icon: 'align-justify' %>
<% end -%>
2 changes: 1 addition & 1 deletion app/views/georgia/header/_pages.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<% if can? :index, Georgia::Page %>
<%= sidebar_navigation_link 'Pages', georgia.search_pages_url, controller: 'pages', icon: 'file' %>
<%= sidebar_navigation_link 'Pages', georgia.search_pages_path, controller: 'pages', icon: 'file' %>
<% end -%>
2 changes: 1 addition & 1 deletion app/views/georgia/header/_users.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<% if can? :index, Georgia::User %>
<%= sidebar_navigation_link 'Users', georgia.users_url, controller: 'users', icon: 'user' %>
<%= sidebar_navigation_link 'Users', georgia.users_path, controller: 'users', icon: 'user' %>
<% end -%>
2 changes: 1 addition & 1 deletion app/views/georgia/menus/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<% if @menus and @menus.any? %>
<%= render @menus %>
<% else %>
<p>There are currently no navigation menus. <%= link_to 'Create a new one', new_menu_url, data: {toggle: 'modal', target:
<p>There are currently no navigation menus. <%= link_to 'Create a new one', new_menu_path, data: {toggle: 'modal', target:
'#menu_form'} %></p>
<% end %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/georgia/pages/_header.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<header class='header-main'>
<div class="header-title">
<%= form_for :search, url: georgia.search_pages_url, method: :get, html: {role: 'search'} do |f| %>
<%= form_for :search, url: georgia.search_pages_path, method: :get, html: {role: 'search'} do |f| %>
<%= facets_inputs([:tg]) %>
<%= hidden_field_tag :s, params[:s] if params[:s] %>
<%= hidden_field_tag :t, params[:t] if params[:t] %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/georgia/shared/search/_messages.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= form_for :search, url: search_messages_url, html: {class: 'form-search'}, method: :get do |f| %>
<%= form_for :search, url: search_messages_path, html: {class: 'form-search'}, method: :get do |f| %>
<%= text_field_tag :query, params[:query], class: 'search-query' %>
<%= f.submit 'Search', name: nil, class: 'btn' %>
<% end %>

0 comments on commit 96f2f5c

Please sign in to comment.