I am trying to use an HTTPService to send a string of text to a controller action. How do I access it within the controller? Thanks.
将Flex与Rails集成的一种简单方法是使用RubyAMF ( http://code.google.com/p/rubyamf/ )。
Any parameters you send should be accessible from the params hash in the controller. For example, if I pass a Rails application the URL:
http://localhost:3000/articles/search?q=articles
I will be able to access the value like this:
#in articles_controller.rb
def search
query = params[:q]
end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.