Gem install jekyll freezes4/14/2023 html: 'Sorry, articles are not available at this time' Render partial: "article_tile", collection: as: :article Add the following to the app/views/layouts/ file just above the closing tag. Let’s start with the required scripts for render_async to do its magic. Later in this tutorial, you’ll create a controller that doesn’t use render_async. Note that this is not necessary, but may speed up your site. This is what the render_async gem is for: using this gem will allow your home page to load before Kontent.ai even responds, and the content will be rendered once it’s received. You’re going to add a new action to the HomeController that will asynchronously request articles from Kontent.ai and display them on the home page. There are no articles displaying yet, so let’s fix that. If you haven’t already, shut down the previous server by pressing CTRL + C in the command line and run the rails server command again to view your changes.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |