Ruby on Rails Thursday, January 6, 2011

On 6 January 2011 19:14, Walter Lee Davis <waltd@wdstudio.com> wrote:
>
> On Jan 6, 2011, at 12:56 PM, Mauro wrote:
>
>> I've seen that railscast, I'm using chrome which support pushState.
>> The problem is that ajax history with paginate works but if you, for
>> example, go to a site www.google.it or whatever internet site and then
>> push browser back button the page showed isn't an html page, but it
>> seems a text page.
>> Try.
>>
>
>
> Watching that 'cast, it seemed to me that you could bookmark the resulting
> URL, and restore your search/pagination/whatever state just fine. I haven't
> tried the google.it page in this respect, but if the URL changes to show the
> unique address of the current state of the page, then that's the goal and
> the goal has been met. Back button or bookmark and new session, it should
> appear the same either way.
>
You create a list and paginate through this using ajax just like the
railscast example.
Then go to a internet site.
Then push the browser back button and you see the page in history as
text and not as an html page.

--
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