Hi guys,

I was looking for an answer how to test whether variable has come via
post or get.
In rails guides it is said that rails does not distinguish between
those
http://guides.rubyonrails.org/action_controller_overview.html#parameters

and in 
http://stackoverflow.com/questions/152585/identify-get-and-post-parameters-in-ruby-on-rails
someone is saying that it is too much details in the controller and
should be set up as a condition in config/routes.rb

What is your view on that? What is the best way to test origin of the
variable (GET or POST) and is it a good practice to do this in the
controller?

Cheers,

Michal

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to