Skip to content

Instantly share code, notes, and snippets.

@lgs
Created February 27, 2010 19:58
Show Gist options
  • Save lgs/316909 to your computer and use it in GitHub Desktop.
Save lgs/316909 to your computer and use it in GitHub Desktop.
class SmsController < ApplicationController
# GET /sms/in
# GET /sms/in.xml
def in
@sms_in = params[:text]
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @prova }
end
end
end
... and my routing is like:
map.resources :sms, :collection => { :in => :get }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment