-
Notifications
You must be signed in to change notification settings - Fork 0
/
scratch.txt
32 lines (21 loc) · 970 Bytes
/
scratch.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<h3><% if @routelist %>
<% @routelist['items'].each do |k,v| %>
<%= "#{k['display_name']}" %>
<% end %>
<% end %>
</h3>
<%= link_to "#{row['display_name']}", places_path(:longitude =>"#{row['longitude']}", :latitude =>"#{row['latitude']}"), class: "list_data" %> <br />
<select>
<option value="">--select--</option>
<% @select_list.each do |row| %>
<option class="list_data" value=<%= row %>><%= row %></option>
<% end %>
</select>
<% elsif @place.length > 0 %>
<% @place.each do |row| %>
<%= link_to "#{row['name']}", places_show_path(:id => row['id']), class: "list_data" %> <br />
<% end %>
Deprecated style:
get "/profile", { id: 1 }, { "X-Extra-Header" => "123" }
New keyword style:
get "/profile", params: { id: 1 }, headers: { "X-Extra-Header" => "123" }