RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: josephers
Aha. I had the same problem but I realized that the ASCIIcast doesn't have it while the main code does!
If you use
<%= best_in_class_if (logged_in? && post_owner?), @post, :title %>
Then it will render uneditable text if you don't satisfy the if statement.
Do you mind telling us how?
I also had the issues with classify not recognizing singular names like "business", so I went with
commentable = nil
params.each do |name, value|
if name =~ /(.+)_id$/
commentable = name.humanize.constantize.find(value)
I read that this is a valid REST response. It's saying that "test" doesn't exist (the username is unique).