```ruby
Rails.application.routes.draw do |map|
  map.resources :editor_images, :controller => 'rich_text/images', :only => [:new, :create]
end```

Switch to rails 3 routing api
user
```ruby
Rails.application.routes.draw do
  resources :editor_images, :controller => 'rich_text/images', :only => [:new, :create]
end```
assistant