search for: johnmerlino

Displaying 3 results from an estimated 3 matches for "johnmerlino".

2010 Feb 10
7
undefined method join
Hey all, I get an undefined method `join'' for #<String NoMethodError. student.rb has_one :student_fail attr_accessor :student_fail_attribute #controller def student_fail @student = @student.find params[:id] def update_student_fail @student.build_student_fail params[:student][:student_fail_attribute] if @student.save #view form_for @student do |f|
2010 Jan 18
3
The role of self and :: within a method of a model
Hey all, I understand that a def self.abc, for example, is a class method, which allows you to call its contents by just referencing model.abc (rather than model.new.abc). However, what is its role when located in a method inside a model like in the code below. Also in the code below, you see :: located in the method. Isn''t that used for modules and namespaces? If so, why is it located
2011 May 06
3
RestClient send method?
...r. RestClient is a rails gem. Here we send the get http verb and a url string comprising of the other application base url and append a query string to it consisting of the new user email that is being created. So if the arguments are these: RestClient.send(:get, www.otherapp.com/users/email?email=johnmerlino-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org) What exactly would RestClient get back as the response? I don''t mean this specific case, but I mean what is supposed to be sent back to client in general. Or even if it is the ruby send method, what exactly is RestClient doing with these two param...