Sha256: 051e86c728c34e14af63103307a39a470228d24fdd195454404e2aeff234445c

Contents?: true

Size: 321 Bytes

Versions: 41

Compression:

Stored size: 321 Bytes

Contents

prepend Actions

on 'index' do
	@base = Utopia::Project::Base.instance
end

on '**/*/index' do |request, path|
	@base = Utopia::Project::Base.instance
	
	lexical_path = path.components.dup
	# Remove the last "index" part:
	lexical_path.pop
	
	@node, @symbol = @base.lookup(lexical_path)
	
	path.components = ["show"]
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
utopia-project-0.17.1 pages/source/controller.rb
utopia-project-0.17.0 pages/source/controller.rb
utopia-project-0.16.0 pages/source/controller.rb
utopia-project-0.15.5 pages/source/controller.rb
utopia-project-0.15.4 pages/source/controller.rb
utopia-project-0.15.3 pages/source/controller.rb
utopia-project-0.15.2 pages/source/controller.rb
utopia-project-0.15.1 pages/source/controller.rb
utopia-project-0.15.0 pages/source/controller.rb
utopia-project-0.14.2 pages/source/controller.rb
utopia-project-0.14.1 pages/source/controller.rb
utopia-project-0.14.0 pages/source/controller.rb
utopia-project-0.13.3 pages/source/controller.rb
utopia-project-0.13.2 pages/source/controller.rb
utopia-project-0.13.1 pages/source/controller.rb
utopia-project-0.13.0 pages/source/controller.rb
utopia-project-0.12.1 pages/source/controller.rb
utopia-project-0.12.0 pages/source/controller.rb
utopia-project-0.11.3 pages/source/controller.rb
utopia-project-0.11.2 pages/source/controller.rb