Redirect_to POST?

Is it possible to automatically direct someone to a POST? Whenever a
user comes to my site, I’m automatically creating a user in the DB for
that person, however I’m also trying to stick to REST principles
otherwise. My idea was to have a before_filter :check_user that checked
to see whether this user existed or redirected to a POST users_url() to
automatically create the user, which would then redirect to a GET
user_url(:id => new_user_id).

Is there a way to redirect_to a POST, or should I forget about REST for
this circumstance and just do the user creation in the before_filter?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs