That's two params: Symbol (:procedureexecutions), followed by a hash (which
omits {}): :label => "Run", :inline
=> false )So that's fine. 2012/8/1 deal bitte <[email protected]> > yaa...but this line throws no error > > config.nested.add_link(:procedureexecutions, :label => "Run", :inline > => false) > > > Colin Law wrote in post #1070901: > > On 1 August 2012 12:02, deal bitte <[email protected]> wrote: > >> wrong number of arguments (3 for 2) I am getting this error for the > >> following lines. I have moved to Rails 3.2.6 and am facing this problem > >> here. It worked in Rails 2.3.5 > >> > >> > >> config.nested.add_link( 'Procs', [:historical_testprocedures], :action > >> => 'editprocedures', :controller => 'Testruns' ) > > > > Look at the docs for add_link and you will see it only takes two > > params, the second of which is the options, so you have too many > > parameters as the error says. > > > > Colin > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Pagarbiai, Gintautas -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

