I am not able for some reason to pass local variables to the show view...
In my controller i have simply:
def show render template: \"books/show\", :re
You can get it as follows. All gives the same result. Here is the reference link.
render action: :show , locals: { resource: "Some text"} render :show , locals: { resource: "Some text"} render locals: { resource: "Some text"}