On Tue, Jul 27, 2010 at 11:48, nathanvda <nathan...@gmail.com> wrote:

> When i go to my first view, i get this very weird error:
>
> wrong number of arguments (2 for 0)

That means you're calling some function/method that's expecting no
arguments, and you're giving it two.

> It goes wrong in the callbacks, in the following function:
>
>    def run_callbacks(kind, *args, &block)
>      send("_run_#{kind}_callbacks", *args, &block)
>    end

My guess would be that the callback is expecting no args, but is being
sent *args and &block.  Even if it ignores them, it should probably
accept them.  Try that and see if it works....

-Dave

-- 
Specialization is for insects. -RAH  | Have Pun, Will Babble! -me
Programming Blog: http://codosaur.us | Work: http://davearonson.com
Leadership Blog:  http://dare2xl.com | Play: http://davearonson.net

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to