vendredi 24 mars 2017

Rails: redirect_to(...) and return vs return redirect_to

When redirecting in rails 3,

Is return redirect_to(...) a valid Rails statement?

I've always just used redirect_to(...) and return but I saw a line like the one described above and I was surprised to see that it also worked.

Aucun commentaire:

Enregistrer un commentaire