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 > config.nested.add_link( 'Regr.', [], :action => 'createregression', > :controller => 'Testruns', :confirm => msg, :page => true ) > config.nested.add_link( 'XML', [], :action => 'xml_export', :page => > true ) > config.field_search.columns = [ :Timestamp, :Scope, > :Location,:release,:tester, :witness, :regressionof, :results, :closed, > :tracematrix ] > > -- > 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. > > -- 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.

