[Rails] How todiffer if params are set through form or through url

2013-04-14 Thread Damjan Rems
Is there a way to differ if params are set through form submit: %= form_tag action: 'login', method: :put do % %= text_field('record','username') % %= password_field('record','password') % %= submit_tag % or through url http://some.site/login?record[username]=userrecord[password]=pwd In both

Re: [Rails] How todiffer if params are set through form or through url

2013-04-14 Thread Colin Law
On 14 April 2013 17:13, Damjan Rems li...@ruby-forum.com wrote: Is there a way to differ if params are set through form submit: %= form_tag action: 'login', method: :put do % %= text_field('record','username') % %= password_field('record','password') % %= submit_tag % or through url