-
Notifications
You must be signed in to change notification settings - Fork 11
panda #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
panda #5
Conversation
Hi! is the "show" directory intended to me in the commit? |
I'm going to assume "/show" shouldn't be here.... So, great job! Of note, on https://github.com/var114/abtvar/blob/master/lib/abtvar/answers.rb#L3
Your gem does this: def aboutVar(answer)
if answer == 'Y'
puts "Because she can code in Ruby"
else
puts "You suck JavaChips"
end
end a Gem is a library, and so it shouldn't really "puts" --- it should just return data based on your input. In this case, it would def about(answer)
if answer == 'Y'
"Because she can code in Ruby"
else
"You suck JavaChips"
end
end (JavaChips made me laugh) 😆 Then in your calling code, puts Bio.new.about(answer) |
oh no. I don’t know how that go in there.
|
About “show” —— it probably existed about you did a “git commit -am ‘message’” That adds everything… To prevent those, you can “git status” to see what’s there that you want to commit… you’ll learn that over time. Also, doing “git add -p” and then "git commit” as 2 separate commands is cool if you want TOTAL CONTROL OVER THE GITS. :) On Friday, December 20, 2013 at 1:37 PM, var114 wrote:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think this will work? I don't see the about.erb anywhere for this to render thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry jesse,
the holidays are making me clumsy…I forgot to do a last repo update. now I have a layout.erb and about.erb in my views folder.
On Jan 2, 2014, at 10:28 AM, Jesse Wolgamott [email protected] wrote:
In niner.rb:
-Bundler.require
+require 'sinatra'
+require 'sinatra/reloader'
+
+Bundler.require
+
+enable :session
+
+x = Abtvar::Bio.new
+puts x.awesome_reply
+
+
- get '/' do
- session[:about] = Abtvar::Bio.new
- @random_answer = session[:about].awesome_reply
- erb :about
Do you think this will work? I don't see the about.erb anywhere for this to render thoughts?—
Reply to this email directly or view it on GitHub.
Looks great! Nicely done. Do you have any question about gems? |
No description provided.