词汇:be

prep. 在,存在;是

相关场景

Don't be Monday morning quarterback.
不要做周一早上的四分卫。不要事后诸葛亮。
>> 16. Slang in Tour Guiding
You need to be at the airport two hours before departure.
>> 15. Seeing the Group Off
The quality can be trusted in hypermarkets.
>> 12 Shopping Tips
The weather couldn't be better.
>> 10 Talking about weather
Seriously how can you be scared of sheep.
>> 63-She Was Not Amused
There might be pickpockets around.
>> 6. Taking care of the tourists of the group
Watch your step, please. It's slippery. Be careful, please.
>> 6. Taking care of the tourists of the group
At most, one meal a day should be excessively full.
>> 62-After the Fire
Service charge will be added to the drinks in the mini-bar.
迷你吧内的饮料将加收服务费。
>> 3 checking in
Fear me if you dare means that the person he's saying that to should be careful not to underestimate him, that he shouldn't be taken lightly.
>> 60-The Future
Your luggage will be delivered to the hotel by our luggage van.
>> 2. Metting the Group
T:
My name is Lily. I'm from China International Travel Agency. Our company has assigned me to be your host here in Wuhan.
我叫莉莉。我来自中国国际旅行社。我们公司派我来武汉做你的东道主。
>> 1. Meeting the Guests at the Airport
So that is a very quick tour of Rails, this is a wonderful way of getting started,just to use those scaffold generators and the authentication generators to get something going, get a Hello world out there, start working on your application, and before you know it, you might just be taking your application all the way from Hello World to IPO.
这是Rails的快速浏览,这是一种很好的入门方式,只需使用这些脚手架生成器和身份验证生成器即可开始工作,创建一个Hello world,开始开发你的应用程序,不知不觉中,你可能会把你的应用程序从Hello world一直带到IPO。
>> Rails 8.0.1 You are in good company
So, be careful when you create things, that are gonna be created on the server side in your real database.The database, by the way? we haven't talked much about that, and that is because we're using SQLite. So, there is nothing to configure,there's nothing to set up, SQLite is now a suitable database for production with Rails. we have tuned it with all the right pragmas,to run SQLite well in production, you of course still need to set up a way to back that up, but everything else is preconfigured for you.
>> Rails 8.0.1 You are in good company
All right , let's save that and hop back,and see a reload here, now, we have a sign out button, and we can sign out, and that's all it should be. let's deploy this to production, we're gonna just check this thing into Git, deploy it straight to production, go back to our alpha.software...Oops! That didn't work. Why did that not work?
>> Rails 8.0.1 You are in good company
So that's just gonna be my email address and 123 password!We hop back into our CLI, and run rails db:seed, that's gonna run that file , I just showed you and set things up.
>> Rails 8.0.1 You are in good company
Everything else by default will be behind the authentication lock! There's also a rate limit to make sure that people don't bombard you with attempts to log into users do not have access to.
>> Rails 8.0.1 You are in good company
And that's basically the rhythm you will be in when you're working on a Rails and application and you're deploying to production.
>> Rails 8.0.1 You are in good company
So in production, you actually need to manually specify the route. So we can go down here, and uncomment this, that sets what the route is going to be, we're just gonna point it to post stud index.
>> Rails 8.0.1 You are in good company
Now I'm gonna deploy this on my own little hoppy server. And that hoppy server is currently wiped. it is completely clean, and Ubuntu 24.04 setup that has nothing on it already, this is part of the magic of Kamal, you can spin up a new VM anywhere in the cloud or use your own hardware and point Kamal straight to it, and you'll be going in no time!
>> Rails 8.0.1 You are in good company
Now, let's set things up to be dynamic, such that when we add a new comment to one of these, it's going to update the other as well. This is how we use web sockets in Rails using action cable, one of the frameworks that we have to create updates that are distributed automatically without folks having to reload their browser.
>> Rails 8.0.1 You are in good company
When it is nested, we get the fact that it's gonna be slash post slash on slash comments, and we have the association is set up nicely. Now, let's reload! Now it works, we have our comments field underneath. we can add the first comment. And as you can see here, this is my first comment a second ago that was the local time doing its time ago conversion.
当它被嵌套时,我们得到的事实是,它将是斜线后斜线对斜线注释,并且我们已经很好地建立了关联。现在,让我们重新加载!现在它工作了,我们在下面有我们的评论字段。我们可以添加第一条评论。正如你在这里看到的,这是我一秒钟前的第一条评论,当时当地时间正在进行时间转换。
>> Rails 8.0.1 You are in good company
All right, let's save that and hop back into our browser. Oop! I made a mistake here! When we generated the resource,it added a route for the new comments,but that route was not nested by default. We actually need to go into our routes.rb, that resource we added needs to be nested.
>> Rails 8.0.1 You are in good company
And your comment is just be a text area for content. We could have made this a rich text field as well, but let's keep things simple and just keep it in plain text!
>> Rails 8.0.1 You are in good company
16:03:
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