rubyonrailsin

A Ruby and Rails talk

Saturday, March 13, 2010


[Rails] Re: Re: form_for, submit, and parameters disappearing

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Marnen Laibow-Koser wrote:
> Why not store the locale in the session, instead of passing around
> hidden fields?

From http://guides.rubyonrails.org/i18n.html
- - - -
You may be tempted to store the chosen locale in a session or a cookie.
Do not do so. The locale should be transparent and a part of the URL.
This way you don't break people's basic assumptions about the web
itself: if you send a URL of some page to a friend, she should see the
same page, same content.
- - - -
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive