Skip to content

Commit

Permalink
Merge ec33e78 into 762afa1
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-brousse committed Apr 3, 2019
2 parents 762afa1 + ec33e78 commit eb09e5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/controllers/komponent/styleguide_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class StyleguideController < ::ApplicationController
layout 'komponent'
rescue_from ActionView::MissingTemplate, with: :missing_template

include Rails.application.routes.url_helpers

def index; end

def show
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ul class="komponent-sidebar-items">
<%- components.each do |_k, component| %>
<li class="komponent-sidebar-item">
<%= link_to_unless_current component.title, styleguide_path(id: component.id) %>
<%= link_to_unless_current component.title, komponent.styleguide_path(id: component.id) %>
</li>
<% end %>
</ul>
Expand Down
1 change: 1 addition & 0 deletions lib/komponent/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

module Komponent
class Engine < Rails::Engine
engine_name "komponent"
isolate_namespace Komponent

rake_tasks do
Expand Down

0 comments on commit eb09e5f

Please sign in to comment.