I can''t believe I''m back again with another rest question. I did go through the peepcode podcast. I thought though you can have multiple nested resources, is that not true ? I have this set up map.resources :candidates do |candidate| candidate.resources :canbackgrounds candidate.resources :canpositions end I just coded up teh canpositions and now all of a sudden I''m getting a no method error on canbackgrounds. Wondering if I''m wrong about multiple nests. TIA Stuart -- http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 10/25/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I can''t believe I''m back again with another rest question. I did go > through the peepcode podcast. > I thought though you can have multiple nested resources, is that not true > ? > > I have this set up > > map.resources :candidates do |candidate| > candidate.resources :canbackgrounds > candidate.resources :canpositions > end > > I just coded up teh canpositions and now all of a sudden I''m getting a no > method error on canbackgrounds. Wondering if I''m wrong about multiple > nests.After juggling around the code a bit and testing various things it looks like the above nested resources should be valid. However I''m getting this error: Mysql::Error: #42S22Unknown column ''canpositions.candidate_id'' in ''where clause'': SELECT count(*) AS count_all FROM canpositions WHERE ( canpositions.candidate_id = 12) Which comes from my show code: <% unless @candidate.canpositions.empty? %> <%= render :partial => "/canpositions/canposition", :collection => @ candidate.canpositions %> <% end %> <% if @candidate.canpositions.empty? %> <%= link_to "Add background", new_canposition_url(@candidate) %> <% end %> Not sure what''s going on. Stuart --> http://en.wikipedia.org/wiki/Dark_ambient-- http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
I''m an idiot ! I admit it. I had left the candidate_id column out of the table! Doh! Forgive me Stuart On 10/25/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On 10/25/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I can''t believe I''m back again with another rest question. I did go > > through the peepcode podcast. > > I thought though you can have multiple nested resources, is that not > > true ? > > > > I have this set up > > > > map.resources :candidates do |candidate| > > candidate.resources :canbackgrounds > > candidate.resources :canpositions > > end > > > > I just coded up teh canpositions and now all of a sudden I''m getting a > > no method error on canbackgrounds. Wondering if I''m wrong about multiple > > nests. > > > After juggling around the code a bit and testing various things it looks > like the above nested resources should be valid. However I''m getting this > error: > > Mysql::Error: #42S22Unknown column '' canpositions.candidate_id'' in ''where > clause'': SELECT count(*) AS count_all FROM canpositions WHERE ( > canpositions.candidate_id = 12) > > Which comes from my show code: > > <% unless @candidate.canpositions.empty? %> > <%= render :partial => "/canpositions/canposition", :collection => @ > candidate.canpositions %> > <% end %> > > <% if @candidate.canpositions.empty? %> > <%= link_to "Add background", new_canposition_url(@candidate) %> > <% end %> > > Not sure what''s going on. > > Stuart > > > > > > > > > > -- > > http://en.wikipedia.org/wiki/Dark_ambient > > > > > -- > http://en.wikipedia.org/wiki/Dark_ambient >-- http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
In case nobody''s already mentioned this... http://www.eweek.com/article2/0%2c1895%2c2035260%2c00.asp Checkitout! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 10/25/06, s.ross <cwdinfo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > In case nobody''s already mentioned this... > > http://www.eweek.com/article2/0%2c1895%2c2035260%2c00.asp >It must be one of those VJ++ type of projects. What else can you expect from M$ ? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
John Lam is one talented individual and a great voice of the ruby community especially to the .NET and microsoft world. This is a good thing for us. On 10/26/06, Bala Paranj <bcparanj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On 10/25/06, s.ross <cwdinfo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > In case nobody''s already mentioned this... > > > > http://www.eweek.com/article2/0%2c1895%2c2035260%2c00.asp > > > > It must be one of those VJ++ type of projects. What else can you > expect from M$ ? > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Agree... Imagine Ruby running much, much faster and closer to the iron. It would run on IIS and possibly also on mono. This is not about competing with Sun. On Oct 25, 2006, at 9:10 PM, Tim Case wrote:> > John Lam is one talented individual and a great voice of the ruby > community especially to the .NET and microsoft world. This is a good > thing for us. > > On 10/26/06, Bala Paranj <bcparanj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> On 10/25/06, s.ross <cwdinfo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> >>> In case nobody''s already mentioned this... >>> >>> http://www.eweek.com/article2/0%2c1895%2c2035260%2c00.asp >>> >> >> It must be one of those VJ++ type of projects. What else can you >> expect from M$ ? >> >>> >> > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Thu, 26 Oct 2006 02:10:44 -0200 "Tim Case" <tcrails1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > John Lam is one talented individual and a great voice of the ruby > community especially to the .NET and microsoft world. This is a good > thing for us.I agree. Ruby on win32 sucks horribly. Mongrel runs incredibly slow. Sockets throw weird errno exceptions. IO is painfully lacking. If anyone can get a compatible Ruby 1.8 running on .NET it''d be a major advantage for a huge number of people. Also, I don''t think MS is all that interested in the J++ strategy anymore. They only did that because they didn''t own the platform. With .NET, they own the platform, and they can sell it better when more languages run on it. Why else did they make it so easy to put other languages on their gear? -- Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu http://www.zedshaw.com/ http://safari.oreilly.com/0321483502 -- The Mongrel Book http://mongrel.rubyforge.org/ http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---