Ravi Dtv wrote:
> 
>  def grouplist
> 
> 
> @currentgroupid=Group.find_by_group_name(params[:group_name])
> @currentgroupfriends=GroupFriend.find_all_by_user_id_and_group_id(current_user.id,@currentgroupid)
> 
>  format.html {redirect_to :back}
> 
>  end

What does the log tell you is nil? current_user or @currentgroupid?

a. You're assuming that @currentgroupid will always have a value, which 
may be okay depending on the source of params[:group_name], which we 
don't know.

b. What is populating current_user?  Is that the source of the nil 
error?

-- 
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