Skip to content

Commit

Permalink
Added support for names with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest Sim committed Jun 19, 2015
1 parent ecea597 commit a4e9937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/spina/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def first_live_child
end

def render_with_template(page)
render layout: "#{current_theme.to_s.underscore}/application", template: "#{current_theme.to_s.underscore}/pages/#{page.view_template || 'show'}"
render layout: "#{current_theme.to_s.parameterize.underscore}/application", template: "#{current_theme.to_s.underscore}/pages/#{page.view_template || 'show'}"
end

end
Expand Down

0 comments on commit a4e9937

Please sign in to comment.