ror 中使用form

3 views
Skip to first unread message

Joseph

unread,
Sep 2, 2008, 9:58:40 PM9/2/08
to Ruby on Rails Taiwan
要如何在ror中使用form提交參數呢?

我希望達成:
再首頁有一個form可以寫上名字
submit後 會再另一頁顯示出 " Hello 名字"
步需要用到model


我的程式碼:
<html>
<body>
<%= start_form_tag :action=>'say_hello', :id=>@name %>
<%= submit_tag "send" %>
<%= end_form_tag %>
</body>
</html>
Reply all
Reply to author
Forward
0 new messages