V
V
VladBond2017-09-16 12:29:46
Ruby on Rails
VladBond, 2017-09-16 12:29:46

Method Not Allowed?

I got an assignment at the university to make a site on Ruby on Rails. Usually I like to study more and more deeply, but for me a particular topic is not interesting. I'm going through Ruby on Rails for Beginners (Michael Hartl). I do everything according to the algorithm

class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception

  def hello
    render html: "hello, world!"
  end
end

Rails.application.routes.draw do
  
  resources :users
  root 'application#hello'
end

But I get not bd2fa7bce603412eb40162ac8e1a37a7.png"Hello world", but "Method Not Allowed".

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VladBond, 2017-09-16
@VladBond

Thanks everyone, I've solved the issue.
Just need to run if you are using cloud9 using Share as mentioned in the first chapter.
I originally ran from a link after the command heroku create
. It's not really easy for me to follow this book, because. very annoying learning surface in the first chapters. Thanks to all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question