Activity
As of writing this - on Aug 3rd 2024 - I did not have to add a platform to launch on render. In other words, I did not have to use this line
bundle lock --add-platform x86_64-linux
Very helpful!
Question: when i removed "blog_posts" from my routes, turning our routes
get "/blog_posts/new", to: "blog_posts#new", as: :new_blog_post
get "/blog_posts/:id/edit", to: "blog_posts#edit", as: :edit_blog_post
get "/blog_posts/:id", to: "blog_posts#show", as: :blog_post
post "/blog_posts", to: "blog_posts#create", as: :blog_posts
root "blog_posts#index"
into
get "/new", to: "blog_posts#new", as: :new_blog_post
get "/:id/edit", to: "blog_posts#edit", as: :edit_blog_post
get "/:id", to: "blog_posts#show", as: :blog_post
post "/", to: "blog_posts#create", as: :blog_posts
root "blog_posts#index"
I would receive
undefined method `blog_posts_path' for #ActionView::Base:0x000000000378e8
when visiting /:id/edit and /new.
Does this have something to do with "create" being mapped to the same route as root?