in that case, would it make more sense to add it to a page when a user is already logged in?
I've just tried adding it to the invitation's index page, and i get the same issue... sorry.... On 10 Feb, 19:45, Steve Klabnik <steve.klab...@gmail.com> wrote: > Your application.html.erb? > > Then yeah, you're going to need @user defined in every controller. > > Also, is this a user that was created before you added in your invitations? > If so, you won't have anything for an invitation_limit for any of your > users, you'll want to do a User.all.each{|user| user.invitation_limit = 5 && > user.save } to give them the ability to send invitations. The after_create > handles it for new users only. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.