Friday, September 9, 2011

[Rails] Passing arrays between controllers/views

I have a controller that produces (through its associated 'view'
displays summary information of) a number of arrays. On that view page
I would like links to other pages, one per array, which shows more
detailed information on the array in question. I tried passing the
array as a parameter to a link and whilst I think that would have been
fine for small arrays for a large array I was getting "URI too large".
Since I don't have admin rights to the web server I don't think I can
tweak the http buffer settings, and anyway I don't think very long URLs
are elegant. What other ways are there to achieve what I am after? One
suggstion I saw was using a session - is that the best way ("the Ruby
way") to pass data between controllers? Any suggstions gratefully
received.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate