Created
July 11, 2012 15:50
-
-
Save yairgo/3091296 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#config/initializers/mime_types.rb | |
Mime::Type.register_alias "text/html", :mobile | |
class ChangeEmailController < ApplicationController | |
respond_to :html, :mobile | |
expose(:email_updater) | |
def new | |
end | |
def create | |
email_updater.update_email | |
respond_with email_updater | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment