Home>

I am creating a blog application with reference to the following site.

https://cpx.business/blog/how-to-create-blog-in-rails/

I want to make a transition when I click "BLOG" from the top page.

DB and model creation is completed with reference to the site.

If i run the current rails routes, it will look like this:
Link content

routes.rb
code
Rails.application.routes.draw do
  root "posts # index"
  root'home # notice'
  resources: posts do
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  end
end

I'm sorry for the lack of explanation, but I would like to know.

  • Answer # 1

    Try rails6!

    If so, why not consider using the standard blogging feature (ActionText) implemented from Rails 6?


    The following article is a compilation of videos of the Rails creator (DHH) implementing the blogging feature.
    https://qiita.com/tomokiyao/items/3c22ca9cb916d5c99ca4

    How easy is it to create a blogging app with proper Rails?
    And how do you use it properly? You can understand the procedure of.


    What I don't want you to forget is what you can learn hereGet the right steps to build an app in Rails(= You can make an app).

    In reality, one command can create many files.
    Eventually, I think it is more important than creating a portfolio to understand what kind of functions and what kind of connections each created file has.

  • Answer # 2

    Thank you for your advice!
    I am aware of the lack of study, but I am currently creating a portfolio for job hunting and would like to create a blog function on my homepage!
    Yes! I will try rails6 as soon as I finish my work!