You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What were you trying to do?
add a view variant, example:
$ ls -lah app/views/admin/courses
drwxr-xr-x 7 casa staff 224B May 4 02:17 .
drwxr-xr-x 4 casa staff 128B May 4 01:00 ..
-rw-r--r-- 1 casa staff 2.0K May 4 02:38 show+student.html.erb
-rw-r--r-- 1 casa staff 2.0K May 4 02:38 show.html.erb
What did you end up with (logs, or, even better, example apps are great!)?
currently in the main controller, cant pass a variant, seems variant: :value not works
# main controllerdefshowrenderlocals: {page: Administrate::Page::Show.new(dashboard,requested_resource)}end
so I implemented something like this in my generated controller
I'm not familiar with view variants. Is this a Rails feature we're not supporting? If so, could you link to the docs so we can plan out how to support it?
I'm not familiar with view variants. Is this a Rails feature we're not supporting? If so, could you link to the docs so we can plan out how to support it?
add a view variant, example:
currently in the main controller, cant pass a variant, seems variant: :value not works
so I implemented something like this in my generated controller
I guess we can add some like
The text was updated successfully, but these errors were encountered: