missing a template for this request format and variant

后端 未结 1 1983
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-03 20:42

I am new to Ruby on Rails and am trying to gain a strong understanding of how MVC works.

I did the following:

rails new bubblesman 
rails generate contro         


        
相关标签:
1条回答
  • 2021-02-03 21:07

    you need to create the available.html.erb file within the views/bubble/ directory. When the route takes you to that action, it also navigates you to that view, so if you put:

    <h2>YEP!!!!</h2>
    

    as the only line in that file, it should return that to you on the webpage.

    In the future, you could use rails g scaffold bubbles and that will create a majority of the files (MVC) and routes for you.

    0 讨论(0)
提交回复
热议问题