Ruby on Rails Wednesday, June 4, 2014

On 4 June 2014 15:59, Jesse Knutsen <dracorna@gmail.com> wrote:
>
> On 6/4/14, 10:30 AM, Colin Law wrote:
>
> On 4 June 2014 15:25, Jesse Knutsen <dracorna@gmail.com> wrote:
>
> Essentially you are calling two different actions right now (in your design)
> where the first leads to the second through a redirect. This redirect will
> actually redirect the user on the browser level, its not just a render.
> While you can do that, its not efficient.
>
> Actually I don't think you can, unless the http spec has changed, I
> believe that redirect to a POST action is not permitted by the spec,
> or at least was not in version 1.1.
>
> Colin
>
> You are 100% correct, but he was going to redirect to Dicts#new. I took that
> to mean that he would pass the data along and then, when present, invoke new
> as if it were create.

Yes, you are right, I was looking at his original intention which was
to post to the create action.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuBH63ePrLBQib1zkfXkHsJ29C5y%3D9HTcJY%2BAVqZq79Eg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment