Skip to content

Commit bcbfd39

Browse files
committed
default_render: fix documentation text
#302 (review)
1 parent 0f1f4bb commit bcbfd39

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/lib/matestack/ui/core/render.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
#

0 commit comments

Comments
 (0)