On Thursday, June 19, 2014 4:45:37 PM UTC+1, Liz Huang wrote:
>
>
> Hi, 
>
> I developed a few simple apps using Ruby On Rails (no database) for 
> researchers, we
> got a new server (Mac Pro) and I try to develop in rails 4.0.4, I have 
> this piece of
> code in index.rhtml, but not anymore if I copy it to index.html.erb, I 
> don't get
> any error, but text_field_tag and submit_tag are not displaying, I read 
> manuals
> about form_tag, text_field_tag and submit_tag, they don't seem to change
> much, what I might be doing wrong? Thanks a lot for your advice.
>
>   <td valign=top>
>     <h3>Sample size calculation</h3>
>       <% form_tag('/progress') do %> 
>

In rails 3 and above you need to use <%= for form_tag

Fred 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/ae4c43a4-c3dc-4b36-ab38-c78bbd4d6f8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to