Page 1 of 2 | Next »
[20:15:49] tpanarch1st: good evening, i'm just getting started with Rails, bit shattered but I thought i'd start having a go at building the blog. https://guides.rubyonrails.org/getting_started.html - this says "To use this generator, open a terminal, navigate to a directory where you have rights to create files, " i'm not sure how to do this or quite how that bit works :)
[21:31:02] tpanarch1st: hi, when you install rails, how do you know which directory to navigate to to create files please
[21:35:10] tpanarch1st: radar, please would you have a look at my bash terminal output from the install to see if there are any issues?
[21:36:43] tpanarch1st: there you go Radar https://gist.github.com/greenlanegreb/cd80c4c4d504700e6bc4ab5a676bf35f - thanks :)
[21:39:13] tpanarch1st: i figured i'd make notes of the output as i'm totally new to coding really - i've watched tons of tutorials over the years but never really made anything :)
[21:40:27] tpanarch1st: i've been looking forward to having a play for a while but just been busy with my voluntary work - January rush! -> I can't remember how I came across that link - i just ended up using it but then discovered ruby website has a lot of it's own!
[21:41:35] tpanarch1st: oh! No, I just found the instructions friendly enough - I didn't have a clue what I was doing really, I think I ran the instructions past the #ruby channel just to make sure there was nothing malicious!
[21:43:50] tpanarch1st: ok :) it's a steep learning curve, so what would the command be to remove the old one to put the one on that you are recommending please?
[21:45:55] tpanarch1st: so it didn't prompt me for anything uninstalling but it said it had uninstalled it all the same
[20:10:37] tpanarch1st: would you say these instructons are alright for setting up an area on my mint install to play with rails? Thanks :) https://github.com/coder-academy-students/rails-setup-for-linux
[20:12:37] tpanarch1st: ah that's awesome - i presume it won't change my mint install in any other way and that i'll be able to use Gems and suchlike properly :)
[20:13:09] tpanarch1st: from what i've read, it sets up an isolated way and a "controller" (of sorts) to deal with ruby commands and keep them away from the rest of the mint stuff in shell :)
[20:20:17] tpanarch1st: i'm a bit lost on how postgres sql comes into play with rails, whenever i've worked with a CMS, for example, it's use mysql and required that to be installed. The tutorials i've seen don't seem to require this
[21:01:38] tpanarch1st: thanks for this MrPunkin so i think, by installing ruby and also rails, postgres comes down with it?
[21:04:14] tpanarch1st: beanie@laptop ~ $ \curl -sSL https://get.rvm.io | bash -s stable --ruby Installing required packages:...sqlite3
[21:07:22] tpanarch1st: thanks for this MrPunkin any objection to me having just done all this? https://github.com/coder-academy-students/rails-setup-for-linux
[21:17:40] tpanarch1st: i guess testing out the app just involves visiting a web address of some description locally - i think there's a way of telling rails to fire up a test server
[21:19:03] tpanarch1st: ah sweet, is it possible/worth bothering to incorporate terminal for rails within atom
[21:19:50] tpanarch1st: sweet, thanks ever so much for all of your advice, it's very much appreciated
[21:20:28] tpanarch1st: i wanted to create a vinyl database, i've watched the blog tutorials a few times, is there a good tutorial for that kind of application geared towards a newb like me?
[21:24:48] tpanarch1st: thanks MrPunkin i shall plug away at that - i guess my project will be explained to me through working on that
[04:04:57] tpanarch1st: oh yeah - i get that you can do the maths equations, i've watched a tutorial on that
[04:05:38] tpanarch1st: well havenwood the syntax is a tricky matter but the basic logic is the same as any other programming language - use an array
[04:06:40] tpanarch1st: oh yeah, i can refer back to Giraffe Academy for that -that's my plan to hard code his stuff in my brain :)
[04:07:15] tpanarch1st: never heard of mashes - this is my life - i know dribs and drabs of allsorts :-D
[04:08:59] tpanarch1st: it's 4:07am here essentially, so i just thought "do some basic reading for my project"
[04:09:45] tpanarch1st: no idea what an anonymous function is - i know what a function is so does it somehow hide your identity or add to security
[04:10:18] tpanarch1st: ok you're going beyond me, misleading you in any way with what I know (and what I don't) would not help!
[04:12:15] tpanarch1st: right so to be totally honest with you havenwood, the def bit i know is the format for functions but the 200 and content type etc, never seen that before
[04:13:07] tpanarch1st: i'm not lazy but i've been totally locked out of programming because I am entirely crap at reading technical documents
[04:13:51] tpanarch1st: havenwood: to take a step back, i seem to remember 200 being ok (absolutely no idea where i've heard that before, is that http??) what is rack please?
[04:14:51] tpanarch1st: i'm trying to grasp on to the little things that you are saying currently and trying to cling on for dear life
[04:15:45] tpanarch1st: oh it's ok if we are talking http this is fine right, it's pretty straight forward that, it's the "meat" of the wqeb
[04:16:08] tpanarch1st: how does http fit in with all of this, i'm totally surprised that http codes have come into the conversation so you can see how lost I am
[04:17:27] tpanarch1st: ok so how does that come into a programming language, i've given up with php (i think)
[04:19:33] tpanarch1st: so, in really basic terms, how have we come on to http status codes in a conversation about ruby, you're obviously trying to teach me something here and I appreciate your time :)
[04:22:25] tpanarch1st: To use Rack, provide an "app": an object that responds to the call method, taking the environment hash as a parameter, and returning an Array with three elements:
[04:23:10] tpanarch1st: a) what is an app, b) what is a call method c) i thought hashes were things like md5 and d_ where does an array come into it when i haven't even started writing code :)
[04:24:06] tpanarch1st: i think there needs to be a "ruby in basic english" website and then i can continue :-p
[04:25:42] tpanarch1st: and rack doesn't provide my web server though :) a quicker way is can someone rewrite that quote in really dumbass terms for me please
[04:28:59] tpanarch1st: so like everything i've heard so far is not a basic start to php, there's obviously a good reason for this but i'm clearly failing to grasp it
[04:30:11] tpanarch1st: it might help if i make clear i've never become competent in even one programming language :)
[04:32:34] tpanarch1st: so like, this is not meant to be rude, and how often do comments get taken the wrong way by text") but how does http requests, rack etc come into starting to type some code and shove some crap in a database and query it please