Skip to content

Commit 6c45bf5

Browse files
committed
include necessary routing in Rails example
It wasn't necessary in Rails 3\!
1 parent 9e8f597 commit 6c45bf5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/oai/provider.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@
125125
# end
126126
# ```
127127
#
128+
# And route to it in your `config/routes.rb` file:
129+
#
130+
# ```ruby
131+
# match 'oai', to: "oai#index", via: [:get, :post]
132+
# ```
133+
#
128134
# Special thanks to Jose Hales-Garcia for this solution.
129135
#
130136
# ## Supporting custom metadata formats

0 commit comments

Comments
 (0)