Browse Source

Partials

pull/122/head
baarkerlounger 4 years ago
parent
commit
bf8b2dba9b
  1. 4
      app/controllers/organisations_controller.rb
  2. 0
      app/views/organisations/_details.html.erb
  3. 0
      app/views/organisations/_users.html.erb
  4. 2
      app/views/organisations/show.html.erb

4
app/controllers/organisations_controller.rb

@ -3,11 +3,11 @@ class OrganisationsController < ApplicationController
before_action :find_organisation
def details
render "details"
render "_details"
end
def users
render "users"
render "_users"
end
private

0
app/views/organisations/details.html.erb → app/views/organisations/_details.html.erb

0
app/views/organisations/users.html.erb → app/views/organisations/_users.html.erb

2
app/views/organisations/show.html.erb

@ -13,3 +13,5 @@
{ name: t('Details'), url: details_organisation_path(@organisation) },
{ name: t('Users'), url: users_organisation_path(@organisation) },
]) %>
<%= render "details" %>

Loading…
Cancel
Save