Thank you very much for the help. I am starting to build a schema in my
brain as to how some of this works.
I have a small problem with the last instruction. How do I use the
"user.projects" in the index method below:
Thank you again - much appreciated.
# GET /posts
# GET /posts.xml
def index
@posts = Post.find(:all, :order => 'created_at DESC')
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @posts }
end
end
Mark Mr wrote:
>Finally
> to display them simply use user.projects
>
> Hope this helped.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---