I configured the route in config.rb
resources :password
If the parameter is not an email address, it works fine.
When the parameter is an email address, it will show me an error:
PUT "/ password / exampl e@gmail.com.json " has been launched for 127.0.0.1 on 2012-02-22 17:04:17 +0800
ActionController :: RoutingError (route mapping [PUT] "/ password / example@gmail.com.json "):
Update1
this is my password controller
def update return_info = User.change_password(params[:id],params[:old],params[:newpw],params[:newpw2]) respond_to do |format| format.json { render :json => {:info => t(return_info)} } end end
Thanks.
source share