Created
February 27, 2010 19:58
-
-
Save lgs/316909 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
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