On Mon, Aug 10, 2009 at 11:38 AM, djolley<ddjol...@gmail.com> wrote:

> 1     def update()
> 2       outfile=File.open('/tmp/look1','w')
> 3       outfile.puts(params.inspect)
> 4       outfile.close
> 5       @member=Member.find(params[:id].to_i)
> 6       outfile=File.open('/tmp/look2','w')
> 7       outfile.puts(@member.inspect)
> 8       outfile.close
> 9       profile=Member.profile(@member.flags)

Without seeing your models this is a WAG, but is #profile really a
class method? If a Profile belongs to a Member, I'd expect to see
something like

            profile = @member.profile

> 10     outfile=File.open('/tmp/look3','w')
> 11      outfile.puts(profile.inspect)
> 12      outfile.close
> 13     #   @profile=profile
> 14   end

FWIW,
-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
twitter: @hassan

--~--~---------~--~----~------------~-------~--~----~
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-talk@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