Hey all,
Following this tutorial "http://allaboutruby.wordpress.com/2009/08/08/5-minute-project-in-rails/" and i cannot get past the error in the subject.
It happens when i modify "app/views/posts/show.html.erb" according to the tuorial.
Now i have got it working another way previously (another tutorial) but had to put something like @users = user.find_all in the posts controller.
My question is - without modifying the controllers, only adding the relationships to the models - can you still use something like "post.user.name" like the tutorial in quesiton.
I am a noob - but would it have something to do with the User table not having a user_id ? so how the hell can the post's table get it link to the user table ?
Can anyone do this tutorial and actually get it to work ? Does it have something to do with my using RUBY-1.8.6-27 and not the latest 2.x.x?
I don't know. I need to sort this out as it will be used HEAVILY in the app i want to make.