# Problem with form\_tag

**URL:** <https://discuss.rubyonrails.org/t/problem-with-form-tag/11957>\
**Category:** rubyonrails-talk\
**Created:** [April 21, 2007, 1:29am UTC](https://discuss.rubyonrails.org/t/problem-with-form-tag/11957 "2007-04-21T01:29:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zack\_Chandler](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@Zack\_Chandler](https://discuss.rubyonrails.org/u/Zack_Chandler)\
**Post date:** [April 21, 2007, 1:29am UTC](https://discuss.rubyonrails.org/t/problem-with-form-tag/11957/1 "2007-04-21T01:29:36Z")

</div>

> I have a view like so:
> 
> HELLO \<% form\_tag :action =\> "create" do %\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<p\>My pretty form!\</p\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<p\>\<%= text\_field "foo", "bar" %\>\</p\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<p\>\<%= submit\_tag "Do it!" %\>\</p\> \<% end %\>
> 
> When the page displays, it only has "HELLO" - the form doesn't show up at all in the outputted HTML.
> 
> I've done a rails -v and it says I'm running 1.2.2
> 
> I looked in my environment.rb file and it showed "RAILS\_GEM\_VERSION = '1.1.6'"
> 
> So, I changed it to show 1.2.2, and then I read somewhere that I needed to rake rails:update
> 
> Did all that and I still just get HELLO without the form.
> 
> I just tried the 1.1.6 version like so:
> 
> HELLO \<% start\_form\_tag :action =\> "create" %\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<p\>My pretty form!\</p\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<p\>\<%= text\_field "foo", "bar" %\>\</p\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<p\>\<%= submit\_tag "Do it!" %\>\</p\> \<% end\_form\_tag %\>
> 
> And that spits out a form. Why is the old version working, but the new version isn't? Is there some other way to see what version of Rails I'm really using?

Terry,

If you specify RAILS\_GEM\_VERSION then that is the version of Rails loaded. If you don't specify a version, Rails will look in vendor/ for a rails/ dir and load that if it exists. Otherwise it'll load the most recent version of the rails gem.

Hope this helps,
