I am trying to made my own gem, but I am still getting an error,
Here is my gem structure: order - app - controllers - order_controller.rb - lib - order order.rb
And content of the order_controller.rb:
class Order::OrderController < ApplicationController
def index
puts "asd"
end
end
I've got order gem added to the main application Gemfil.
I defined my root to lead to index action of that controller:
root :to => "order/order#index"
but when I try to access homepage I get:
uninitialized constant Order::OrderController
What I've done wrong?