> --------------------Myprojects controller--------------------
> class MyprojectsController < ApplicationController
>   def index
>     @myprojects = current_user.Project.all   #<-------- 'Project'
> reference here is getting an undefined method error
> 
>     respond_to do |format|
>       format.html # index.html.erb
>       format.xml  { render :xml => @myprojects }
>     end
>   end

Would that not need to read

@myprojects = current_user.projects.all

PS i'll be impressed if i'm right being new to rails myself! :)
-- 
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.

Reply via email to