Advertisement
Guest User

Untitled

a guest
Mar 13th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <select name="destination">
  2. <optgroup label="N Line">
  3. <option value="Times">Times Square</option>
  4. <option value="34">34th</option>
  5. <option value="28N">28th</option>
  6. <option value="23N">23rd</option>
  7. <option value="Union">Union Square</option>
  8. <option value="8N">8th</option>
  9. </optgroup>
  10. <optgroup label="6 Line">
  11. <option value="Grand" selected="selected">Grand Central</option>
  12. <option value="33">33rd</option>
  13. <option value="286">28th</option>
  14. <option value="236">23rd</option>
  15. <option value="Union">Union Square</option>
  16. <option value="Astor">Astor Place</option>
  17. </optgroup>
  18. <optgroup label="L Line">
  19. <option value="8L">8th</option>
  20. <option value="6">6th</option>
  21. <option value="Union">Union Square</option>
  22. <option value="3">3rd</option>
  23. <option value="1">1st</option>
  24. </optgroup>
  25. </select>
  26.  
  27. And in my main.rb
  28.  
  29. get '/result' do
  30. @origin = params[:origin]
  31. @destination = params[:destination]
  32.  
  33. erb :result
  34.  
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement