we are upgrading out application to rails 3 and we have decided to keep prototype for now and we are using alot of helpers one of them is remote_function here is an example call to this in our app. link_to_remote("/users/#{@user.id}/ recent_news", :method=>:get, :update=>"user_recent_news_#{@user.id}") %> this produces this error wrong number of arguments (2 for 1) what needs to change? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
This is not the correct place for this question. On Mon, Apr 25, 2011 at 10:10 PM, gerberdata <gerbdla@gmail.com> wrote:> we are upgrading out application to rails 3 and we have decided to > keep prototype for now and we are using alot of helpers one of them is > remote_function here is an example call to this in our app. > > link_to_remote("/users/#{@user.id}/ > recent_news", :method=>:get, :update=>"user_recent_news_#{@user.id}") > %> > > this produces this error > wrong number of arguments (2 for 1) > > what needs to change? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Ben: try to be a little more descriptive. gerberdata: Please ask this on the rubyonrails-talk mailing list, as this list is reserved for issues pertaining to the core of Rails itself, and not your application. -- Ryan Bigg On Tuesday, 26 April 2011 at 7:49 AM, Ben Langfeld wrote:> This is not the correct place for this question. > > > On Mon, Apr 25, 2011 at 10:10 PM, gerberdata <gerbdla@gmail.com> wrote: > > we are upgrading out application to rails 3 and we have decided to > > keep prototype for now and we are using alot of helpers one of them is > > remote_function here is an example call to this in our app. > > > > link_to_remote("/users/#{@user.id}/ > > recent_news", :method=>:get, :update=>"user_recent_news_#{@user.id}") > > %> > > > > this produces this error > > wrong number of arguments (2 for 1) > > > > what needs to change? > > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > > To post to this group, send email to rubyonrails-core@googlegroups.com. > > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. > > > > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.