Is it possible to read a line from a text field and display it as a layout?
If I use this, it searches for the 1.html.erb file under the layouts:
1.html.erb
layout: '1'
You can pass the layout name in a call to render
def show @team = Team.find_by name: 'Red Sox' render action: :show, layout: @team.preferred_layout end
Check out http://guides.rubyonrails.org/layouts_and_rendering.html
All official rails are a great resource.
To use text
render text: "OK"
Source: https://habr.com/ru/post/955181/More articles:How to change the display order of items using Bootstrap 3 - twitter-bootstrapHow to print the @ symbol in HTML with a playback framework (scala) - scalaYou need to be able to change the grid on mobile devices - cssAdd new row and change column classes when resizing - jqueryOrder div on mobile - htmlWhy won't my app find the default satellite build resources in the US? - c #paste into stored procedure with MYSQL parameters does not work - mysqlhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/955184/possible-to-achieve-this-mobiledesktop-layout-using-bootstrap-or-other-grid&usg=ALkJrhhfXv3L02KsPQxSobI3YSeep2O-ngHow can I override the standard handler404, handler403, handler500 in Django? - pythonVariable references non-existent resource Build.xml - javaAll Articles