# Weird "tag\_options" error after upgrading 1.2.6 -\> 2.0.2

**URL:** <https://www.ruby-forum.com/t/weird-tag-options-error-after-upgrading-1-2-6-2-0-2/128100>\
**Category:** Rails\
**Created:** [February 5, 2008, 1:27am UTC](https://www.ruby-forum.com/t/weird-tag-options-error-after-upgrading-1-2-6-2-0-2/128100 "2008-02-05T01:27:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![silent\_Se](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@silent\_Se](https://www.ruby-forum.com/u/silent_Se)\
**Post date:** [February 5, 2008, 1:27am UTC](https://www.ruby-forum.com/t/weird-tag-options-error-after-upgrading-1-2-6-2-0-2/128100/1 "2008-02-05T01:27:12Z")

</div>

Hello all. I am REALLY hoping someone can knock me upside the head  
with an answer to this because I’m flummoxed.

I’m trying to get my project moved over to 2.0.2 from 1.2.6. I  
upgraded the Rails gem (and dependencies) successfully.  
rake:deprecated passed with no issues. I ran “rake rails:update”.  
Everything I think I’m supposed to do for the update.

I’m getting the following error. It happens anywhere I’m outputting  
an html tag in my code.

ArgumentError in Sessions#new

Showing sessions/new.rhtml where line #3 raised:

wrong number of arguments (2 for 1)

Extracted source (around line #3):

1: \<% form\_tag sessions\_path, :id =\> ‘loginform’ do -%\>  
2:

Login  
  
3: \<%= text\_field\_tag ‘login’, nil, :size =\> 50 %\>

  
4:  
5: 

Password  
  
6: \<%= password\_field\_tag ‘password’, nil, :size =\> 50 %\>

Application Trace  
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action\_view/  
helpers/tag\_helper.rb:40:in `tag_options' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/ helpers/tag_helper.rb:40:in`tag’  
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action\_view/  
helpers/form\_tag\_helper.rb:114:in `text_field_tag' app/views/sessions/new.rhtml:3:in`\_run\_erb\_47app47views47sessions47new46rhtml’  
app/views/sessions/new.rhtml:1:in  
`\_run\_erb\_47app47views47sessions47new46rhtml’

This form code is from Rick’s “restful\_authentication” plugin, with  
some minor personal tweaks but nothing that’d cause this issue. This  
same error occurs on “image\_tag”, “stylesheet\_tag”, etc. I don’t  
think I have any conflicting plugins installed. I’d have thought that  
if I did, they’d show up in the Application Trace output and this  
clearly shows it’s coming from the actionpack-2.0.2 gem.

Anyone have any ideas. I’m at wits end on this.

Thanx in advance.

matte

---

<div class="post-metadata">

**Author:** ![silent\_Se](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@silent\_Se](https://www.ruby-forum.com/u/silent_Se)\
**Post date:** [February 5, 2008, 1:35am UTC](https://www.ruby-forum.com/t/weird-tag-options-error-after-upgrading-1-2-6-2-0-2/128100/2 "2008-02-05T01:35:24Z")

</div>

On 5 Feb 2008, at 00:26, silent (e) wrote:

> This form code is from Rick’s “restful\_authentication” plugin, with  
> some minor personal tweaks but nothing that’d cause this issue. This  
> same error occurs on “image\_tag”, “stylesheet\_tag”, etc. I don’t  
> think I have any conflicting plugins installed. I’d have thought that  
> if I did, they’d show up in the Application Trace output and this  
> clearly shows it’s coming from the actionpack-2.0.2 gem.

Not necessarily: what the trace shows is that when tag\_options is  
called from actionpack on that lines, the number of parameters is not  
what was expected. Do you have a plugin redefining the method  
tag\_options somewhere ?

Fred

---

<div class="post-metadata">

**Author:** ![silent\_Se](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@silent\_Se](https://www.ruby-forum.com/u/silent_Se)\
**Post date:** [February 5, 2008, 1:44am UTC](https://www.ruby-forum.com/t/weird-tag-options-error-after-upgrading-1-2-6-2-0-2/128100/3 "2008-02-05T01:44:12Z")

</div>

I coulda had a V8 (man, that ages me. heh). Yeah. I’m too hasty to  
post. I shoulda searched. I’m still using the Unobtrusive Javascript  
plugin. They redefine tag\_options in their “lib/  
tag\_helper\_patches.rb” file.

Time to start working on my javascript code output.

Thanx for giving me that knock upside the head.

matte

On Feb 4, 4:33 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![silent\_Se](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@silent\_Se](https://www.ruby-forum.com/u/silent_Se)\
**Post date:** [February 5, 2008, 1:37am UTC](https://www.ruby-forum.com/t/weird-tag-options-error-after-upgrading-1-2-6-2-0-2/128100/4 "2008-02-05T01:37:45Z")

</div>

Quick update. It’s like the “tag\_options” it’s trying to use is the  
actionpack-1.13.6 version, which only has 1 parameter instead of 2  
like in actionpack-2.0.2

But I also uninstalled all rails code (including dependencies) from my  
computer, leaving only 2.0.2 rails gems and it still gives me the  
error.

I’m about to try starting a brand new rails project and slowly port  
over my old project code into the new one but boy that sounds like  
more work than it’s worth.

matte
