Permalink
Browse files

Changed question3.rb to return text

  • Loading branch information...
1 parent 97be1e7 commit f406845ec18943d76264826039ad4912dc7142bf @ehalferty committed Apr 25, 2012
Showing with 8 additions and 6 deletions.
  1. +4 −5 controllers/question3.rb
  2. +4 −1 views/index.erb
View
@@ -2,13 +2,12 @@
get '/question3/:population' do
- @population = params[:population].to_i
- @total, @numbers, @letters, @excess = calc(@population)
+ population = params[:population].to_i
+ total, numbers, letters, excess = calc(population)
- @pattern = patternify(@numbers, @letters)
+ pattern = patternify(numbers, letters)
- @title = 'Question 3 - license plate calculation'
- erb :results
+ pattern + "|" + total + "|" + excess
end
View
@@ -1 +1,4 @@
-<p>Testing</p><h2>Testing</h2>
+<p>Greetings IGN,</p>
+<p>I'm a self-taught programmer, with a strong interest in the business and development of games.</p>
+<p>Question 3 seems to indicate that the license plates will have a
+number of characters, and each character can have a range of 0-9 or A-Z. </p>

0 comments on commit f406845

Please sign in to comment.