Do you mean you want to show the values relating to each floor_x
key on a different page?
If so, at a very basic level, you could use the following (for example, in your controller):
def index
@hash = { floor_1: [101,102,103], floor_2: [201,203,204], floor_3: [301,302,303] }
end
In your view:
<% params[:floor] ||= 1 %> # show values for floor_1 if param not provided
<% hash["floor_#{params[:floor]".to_sym].each do |vals| %>
# display your values
<% end %>
<%= link_to 'Down A Floor', your_path(params[:floor].to_i - 1) if hash["floor_#{params[:floor].to_i - 1}".to_sym] %>
<%= link_to 'Up A Floor', your_path(params[:floor].to_i + 1) if hash["floor_#{params[:floor].to_i + 1}".to_sym] %>
Extremely basic but might get you on the right track. Basically, you make the hash of floors / values available to a view, and display the current floor with links to the floor above and below if they exist.
Very unlikely you'd want it looking like that in your final code, lots of nasty inline logic, though I wanted to keep things very simple. Have look into using a presenter or decorator to handle this.