File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
app/lib/matestack/ui/core Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,18 @@ def render(*args)
2222 end
2323 end
2424
25- # Matestack allows implicit rendering. When an `index` or `show` action is requested, which is not
26- # defined, then the matestack page is inferred from the controller name. The index action will
27- # look for a `Page` with a plural name, the show action will look for a `Page` with a singular
28- # name.
25+ # Matestack allows implicit rendering. The matestack page class name is inferred from the
26+ # controller path and action name.
2927 #
3028 # class Clients::BookingsController < ApplicationController
3129 # def index
3230 # @bookings = Booking.all
31+ # # looks for Pages::Clients::Bookings::Index
3332 # end
3433 #
3534 # def show
3635 # @booking = Booking.find params[:id]
36+ # # looks for Pages::Clients::Bookings::Show
3737 # end
3838 # end
3939 #
@@ -44,6 +44,7 @@ def render(*args)
4444 #
4545 # class Clients::BookingsController < ApplicationController
4646 # def step1
47+ # # looks for Pages::Clients::Bookings::Step1
4748 # end
4849 # end
4950 #
You can’t perform that action at this time.
0 commit comments