I’m not really a Rails developer and I’m working on someone else’s code.
Anyway, I’m trying to change the login function so that it uses POST instead of GET. Right now it looks like this:
def login
email = params[:email];
password = params[:password];
# login logic ...
end
What do I need to change to use POST variables instead?
EDIT: The line that looked relevant in routes.rb
match "service/login", :to => "service#login"
If there’s something else I’m looking for, please let me know.
Change:
to:
or (shorter):