pelle / oauth-plugin

Rails plugin for OAuth
http://stakeventures.com/articles/2009/07/21/consuming-oauth-intelligently-in-rails
MIT License
716 stars 216 forks source link

error_messages_for removed in Rails3. #108

Open byu opened 12 years ago

byu commented 12 years ago

_form html templates use the deprecated (and removed) helper: error_messages_for:

generators/oauth_provider/templates/_form.html.erb:<%%= error_messages_for :client_application %> generators/oauth_provider/templates/_form.html.haml:=error_messages_for :client_application lib/generators/erb/oauth_provider_templates/_form.html.erb:<%%= error_messages_for :client_application %> lib/generators/haml/oauth_provider_templates/_form.html.haml:=error_messages_for :client_application

Only tested on a brand new app based on Rails 3.1.3. This is for the oauth_clients registrations.

brendannee commented 12 years ago

I ran into this issue too - is it worth updating the generator templates using something like this example: http://www.suffix.be/blog/error-messages-for-rails3 ?