词汇:show
vt. 显示;演出;展出;说明
相关场景
Now that we have that up, we can hop in and look it all up into the show action for the posts! That's gonna reference that common slot comments, that includes both the comments and the new form.
>> Rails 8.0.1 You are in good company
>> Rails 8.0.1 You are in good company
Now, we're also gonna add a number of partials here. This is the templating system, basically, a sub-routine that you can refer to. There's gonna be three of them that includes the entire comment section. We're gonna reference that in our post show in just a second. And within that, we're gonna refer to another partial for an individual comment, and another partial again for the new setup. So, let's paste some of that in here, You can see this for the entire collection, it just has an H2 for the comments, and we render the post comments. This again uses Rails' convention over the configuration approach.
>> Rails 8.0.1 You are in good company
>> Rails 8.0.1 You are in good company
Now, let me show you one of the first feature here. If we do raise exception inside the index action, "rails 'some exception' " you will see that Rails provides some really nice interface for dealing with that exception, seeing exactly where it happened. If I'm reloading here, you can see the line, it was raised on the source code that's around it, you can see a full trace. And down here, we even have a console! So, you can interact with the instance variables that have been set for this index actions, here's just at posts that's been made available.
>> Rails 8.0.1 You are in good company
>> Rails 8.0.1 You are in good company
But oh yeah! Let's show you real quick here,if you do a /post.json, you're gonna get that automatic API as well, as I showed you in the controller, there are two different paths, you have HTML, and you have JSON. You could also have added XML in there or another path, but by default, you just get these two different variants, the HTML and the JSON variant.
>> Rails 8.0.1 You are in good company
>> Rails 8.0.1 You are in good company
All post controllers follow the same convention. There are seven actions, you have index,show, new, edit, create and update and destroy! So there form a basic setup for configuring everything that's needed for a resource to be exposed to the web.
>> Rails 8.0.1 You are in good company
>> Rails 8.0.1 You are in good company
Welcome to Ruby on Rails. If you are looking to go from Hello World to IPO, you've come to just the right place. I'm gonna build a simple application that shows you the basic of Ruby on Rails and how you put it into production. Let's go.
>> Rails 8.0.1 You are in good company
>> Rails 8.0.1 You are in good company
We absolutely believe, without exception, that we are the most captivating, most interesting subject on the planet. Research shows that when talking about yourself , the same brain areas as indulging in good food, talking about talking drugs, or even having sex is used.
>> ARE chat formula
>> ARE chat formula
将上演一场喜剧表演
we all rushed to see it. We had to queue for hours to get in and there must have been several hundred people present just before the show began.
>> 89-A Slip of the Tongue
>> 89-A Slip of the Tongue
我们都急着去看。我们不得不排队几个小时才能进去,演出开始前肯定有几百人在场。
(beat) Well, if he doesn't show up and I have to file a report saying he wasn't here and he goes back to jail, it won't be on my conscience, Sean.
>> Good Will Hunting (1997)Movie Script
>> Good Will Hunting (1997)Movie Script
Will, on your own time, you can do what you like. When I set up a meeting, with my associates, and you don't show up it reflects poorly on me.
>> Good Will Hunting (1997)Movie Script
>> Good Will Hunting (1997)Movie Script
EXT. CONSTRUCTION SITE -- DAY Will and Chuckie at work. Chuckie shows Will how to be a man.
>> Good Will Hunting (1997)Movie Script
>> Good Will Hunting (1997)Movie Script
To show me he doesn't have to talk to me if he doesn't want to.
>> Good Will Hunting (1997)Movie Script
>> Good Will Hunting (1997)Movie Script
Well, he didn't show up for work today... Terry takes a beat. Holding all the cards.
>> Good Will Hunting (1997)Movie Script
>> Good Will Hunting (1997)Movie Script
EXT. TOM FOLEY PARK, S. BOSTON -- AFTERNOON In the bleachers of the visiting section we find our boys, drinking and smoking cigarettes. Will pops open a beer. The boys have been here a while and it shows.
>> Good Will Hunting (1997)Movie Script
>> Good Will Hunting (1997)Movie Script
展出;表演;
Because we've been sitting on that beach there for hours, and nobody's even bothered to show up.
>> Madagascar (2005)Movie Script
>> Madagascar (2005)Movie Script