0
매우 기본적인 일이지만 사과합니다. Ruby를 처음 사용하는 것에 대해 사과합니다. 내 게시물 페이지에 간단한 양식을 보내려고하지만이를 검색하는 방법을 모르겠습니다.Sinatra 및 Ruby 양식
여기
<h1>Wiki</h1>
<form action="/post" method="post">
<input type="text" name="message">
<input type="submit">
</form>
내가보기 게시물 페이지에 무언가를 추가해야합니까 내 index.html.erb이야 여기 내 app.rb
#app.rb
require 'rubygems'
require 'sinatra'
require 'shotgun'
Tilt.register Tilt::ERBTemplate, 'html.erb'
get '/' do
@title = "Home Page"
erb :index
end
post '/post' do
body = params[:body]
erb :post
end
이고?