May 9, 2008
Generic-user-small Karsten Wilke 3 posts

Topic: Agile Web Development with Rails, 3rd Edition / Pagination

Hi can someone tell me how pagination will be handled in the third edition? i looked into the samples but there was still the deprecated code in there.

 
Dec 4, 2007
Generic-user-small Karsten Wilke 3 posts

Topic: Agile Web Development with Rails / The Depot Application

I have a problem when i want to delete the last user. It works even if i get a message that the last user can not be deleted. Is it possible that the problem comes from that line

if User.count.zero? rais “cant delete last user”
end

should it not be

if User.count.zero+1? rais “cant delete last user”
end

Thank you

 
Nov 20, 2007
Generic-user-small Karsten Wilke 3 posts

Topic: Rails Recipes / Authorizing Users with Roles

Hi, i downloaded the source for the book and i wanted to look up the source for Authorizing Users with Roles but i can not find it. Does the example come with the code you can download or is it not in there ?

3 posts