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.
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)
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.
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?