What is wrong with this code?

Hi. What is wrong with this code:
Do I have to create the button as a RoR special tag? how?

Hello!!! <%= start_form_tag :controller=>'greet', :action=>'say_hi' %>

Enter Your N.:

<%= @message %>

<%= end_form_tag %>

On 10/4/06, Jose P. [email protected] wrote:

<%= start_form_tag :controller=>'greet', :action=>'say_hi' %>

Enter Your N.:

<%= @message %>

 <p>
    <%= submit_tag "Save" -%>

<%= end_form_tag %>

The submit_tag helper is what your after

http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#M000502

hi

I also found an answer in this post:
http://www.ruby-forum.com/topic/66315#79612

Daniel ----- wrote:

On 10/4/06, Jose P. [email protected] wrote:

<%= start_form_tag :controller=>'greet', :action=>'say_hi' %>

Enter Your N.:

<%= @message %>

 <p>
    <%= submit_tag "Save" -%>

<%= end_form_tag %>

The submit_tag helper is what your after

http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#M000502

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs