Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

pull request for review#1

Open
daniez wants to merge 16 commits into
cuny-nytech:masterfrom
DAloiciusFilesFromCUNY-NYTechClass:master
Open

pull request for review#1
daniez wants to merge 16 commits into
cuny-nytech:masterfrom
DAloiciusFilesFromCUNY-NYTechClass:master

Conversation

@daniez
Copy link
Copy Markdown

@daniez daniez commented Oct 15, 2014

Hi, Thanks for any help with the single-purpose app.
My main problem is that my app will not display on Heroku. I get error message and log mentioned in email.

Also, question about coding:

if Date.parse('2018-6-8') > Date.today
currently returns false which is strange to me.
Shouldn't Date.today < 2018-6-8?

If I set system time to 2018-6-8 or 2018-6-9
the above returns true, which is also kind of strange.

So I've set my app to say Nyet when condition is false and da when condition is true, which seems to make it display the correct webpage. But I'm not sure how the Date.parse and > operator are really working. I can look into that but I thought I'd mention it since I'm also having trouble with getting it on Heroku.

@PeterBell
Copy link
Copy Markdown

if will evaluate to either true or false.

Start up erb on the command line. Enter "Date.today", "Date.parse('2018-6-8
')", and "Date.parse('2018-6-8') > Date.today" and see what each returns.
Guessing you're running into issues with date types and coercion. If you
want a quick fix, google "comparing dates in ruby" and it should get you
some stack overflows with answers for getting the output you want. SO is
your friend!

On Tue, Oct 14, 2014 at 9:29 PM, daniez notifications@github.com wrote:

Hi, Thanks for any help with the single-purpose app.
My main problem is that my app will not display on Heroku. I get error
message and log mentioned in email.

Also, question about coding:

if Date.parse('2018-6-8') > Date.today
currently returns false which is strange to me.
Shouldn't Date.today < 2018-6-8?

If I set system time to 2018-6-8 or 2018-6-9
the above returns true, which is also kind of strange.

So I've set my app to say Nyet when condition is false and da when
condition is true, which seems to make it display the correct webpage. But
I'm not sure how the Date.parse and > operator are really working. I can
look into that but I thought I'd mention it since I'm also having trouble

with getting it on Heroku.

You can merge this Pull Request by running

git pull https://github.com/daniez/single-purpose master

Or view, comment on, or merge it at:

#1
Commit Summary

  • added isthe2018worldcuphappening ruby and the views
  • ran rubocop
  • ran rubocop
  • ran rubocop
  • added Procfile
  • changed Procfile
  • changed Procfile

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#1.

@daniez
Copy link
Copy Markdown
Author

daniez commented Oct 15, 2014

I'll try that, thnx. And yes, I love SO. (Where I found Date.parse!)

On Tue, Oct 14, 2014 at 9:35 PM, Peter Bell notifications@github.com
wrote:

if will evaluate to either true or false.

Start up erb on the command line. Enter "Date.today",
"Date.parse('2018-6-8
')", and "Date.parse('2018-6-8') > Date.today" and see what each returns.
Guessing you're running into issues with date types and coercion. If you
want a quick fix, google "comparing dates in ruby" and it should get you
some stack overflows with answers for getting the output you want. SO is
your friend!

On Tue, Oct 14, 2014 at 9:29 PM, daniez notifications@github.com wrote:

Hi, Thanks for any help with the single-purpose app.
My main problem is that my app will not display on Heroku. I get error
message and log mentioned in email.

Also, question about coding:

if Date.parse('2018-6-8') > Date.today
currently returns false which is strange to me.
Shouldn't Date.today < 2018-6-8?

If I set system time to 2018-6-8 or 2018-6-9
the above returns true, which is also kind of strange.

So I've set my app to say Nyet when condition is false and da when
condition is true, which seems to make it display the correct webpage.
But
I'm not sure how the Date.parse and > operator are really working. I can
look into that but I thought I'd mention it since I'm also having
trouble

with getting it on Heroku.

You can merge this Pull Request by running

git pull https://github.com/daniez/single-purpose master

Or view, comment on, or merge it at:

#1
Commit Summary

  • added isthe2018worldcuphappening ruby and the views
  • ran rubocop
  • ran rubocop
  • ran rubocop
  • added Procfile
  • changed Procfile
  • changed Procfile

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#1.


Reply to this email directly or view it on GitHub
#1 (comment)
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants