Page 1 of 3 | Next »
[17:29:49] andhof-mt: but I can't access it in anyway, e.x. Hero.all - because rails doesn't seem to understand what the singular of heroes is
[03:49:17] andhof-mt: If I already have defined @tutorial = Tutorial.all in my controller, is there anyway to get the second tutorial? I tried @tutorial but didn't work
[03:54:57] andhof-mt: arup_r, I fixed it. Tutorial.all returns an object not a array so it wasn't working using variable_name[position] notation.
[22:29:22] andhof-mt: and I want to split courses into multiple parts, should it be: website.com/courses/1/lessons/2
[22:31:18] andhof-mt: hmm just trying to figure out what looks most proffesional. relaunching this site that is pretty big
[22:38:26] andhof-mt: cogsbox, if you did add_column command you are g2g. if you did drop_column you are not g2g.
[22:49:44] andhof-mt: I've been trying to find a rails job in Seattle, but most companies here are java or c#. Any good RoR specific job sites?
[02:53:04] andhof-mt: I made a helper function called parse_url which takes a url param. It's in my pages controller. I'm modifying a view inside the pages controller. How can I call parse_url from my view in ERB?
[22:35:12] andhof-mt: if I have a Tutorial, and that Tutorial has four lessons. I can ask for Tutorial.lessons. But how do I find the order of those tutorials or ask for only one at a time?
[16:22:54] andhof-mt: So my app basically is a video viewing site for fan made views for a certain genre
[16:23:46] andhof-mt: I have sorting "playlists" A,B,C,D,E... etc. Should I do that or do A-E, F-J, etc?
[17:22:31] andhof-mt: Guys, I'm trying to increment a number in my model based on the highest number assigned previously
[17:22:59] andhof-mt: basically, each "tutorial" has many lessons. I want to number the lessons per tutorial. Would love help!
[17:26:33] andhof-mt: My migration was this basically: add_column :lessons, :number, :integer, :null => false, :default => 1
[20:01:44] andhof-mt: for what reason could I not compare params[:id] in my create method to an integer
[20:06:26] andhof-mt: so rails was TELLING me it was an int but wasn't comparing unless it had explicit cast
[20:20:05] andhof-mt: bmuholland, every line of code I have written this week has been a big fix for small problems
[17:22:47] andhof-mt: Hey, I'm trying to grab a user's user object via his username rather than id. Any ideas how to do this?
[17:36:21] andhof-mt: My User model in devise has both email and admin fields. (admin is a boolean). If I find the user via user1 = User.find_by_username(xxx) I can do user1.email and it works fine
[17:37:48] andhof-mt: DoctorMonocular, in the database it shows correctly. And in console it works. In console I can do user.admin not in app tho
[17:39:41] andhof-mt: Yeah its weird to me too, esp. cuz this is super basic usually. my whole code is 1 line
[17:45:24] andhof-mt: Reloaded the server a third time and now it works... Is it possible that would get cached somehow?
[18:00:04] andhof-mt: Is there anyway for me to create a relationship accross tables? So a topic HAS A tutorial which HAS A episode?
[18:04:12] andhof-mt: waseem, from a software engineering standpoint. If I had three tables, topic -> subtopic -> tutorial -> episodes would it be optimal to built episodes first or topic first?
[18:05:19] andhof-mt: each topic can have many subtopics, each subtopic can have many tutorials, each tutorial can have many episodes
[18:07:26] andhof-mt: waseem, no, all episodes belong to a tutorial which belongs to a subtopic which belongs to a topic
[18:32:57] andhof-mt: One final question catcher, if I make my "tutorials" belong to both a user and a "subtopic" is there anyhting I should watch out for?
[18:38:45] andhof-mt: catcher, could you do me a hugggeee favor and check this out before I run it: https://gist.github.com/andhof-mt/1ee1a6be990cc2a373c9 so I don't break anything stupid?
[18:43:54] andhof-mt: catcher, if I set up my topic as just: topic = name, desc. subtopic = belongs_to topic, name, text do I need to add "has_many" to topic or is that a given?
[18:55:33] andhof-mt: cnk, does this look better: https://gist.github.com/andhof-mt/82a517a61a62f58d3ed8
[18:58:30] andhof-mt: cnk, I read that but it showed me this picture: http://guides.rubyonrails.org/images/has_many.png that's why I did it
[19:01:06] andhof-mt: two ways I think a lesson could work: 1) a lesson is part of a "tutorial", 2) a lesson is standalone
[19:02:33] andhof-mt: How would I handle the standalone edge case, where an author on my site uploads a "lesson" but does not put it in a tutorial?
[19:04:01] andhof-mt: skyjumper, I'm building a website to go along with my coding tutorials. https://gist.github.com/andhof-mt/82a517a61a62f58d3ed8
[19:04:40] andhof-mt: I have a really popular set of Arduino and GameDev / General coding tuts... previously hosted on wordpresss. 2 million visiters or so per year
[19:07:13] andhof-mt: My best month is $700 on adsense, average was $250 til december. Migrating to a rails app would give me alot more flexibility in how I tech
[19:24:03] andhof-mt: Is there anyway to make rails generate my models and controllers with my migration?
[20:10:47] andhof-mt: so I created both a "Topic" and a "Tutorial". My "Topic" has many "Tutorials", my "Tutorial" belongs to a topic
[20:11:10] andhof-mt: in the console I created a Topic named "Test Topic" and a tutorial "Test Tutorial" how do I relate the two
[20:12:35] andhof-mt: CheckYourSix, they are in the models. I want to test in the console by making "Test Topic" have_a "Test Tutorial"
[17:00:52] andhof-mt: hey guys I started a programming channel focused on Rails development. Could anyone give me some feedback: https://www.youtube.com/user/devfactor
[16:54:26] andhof-mt: user has an integer attached :score, how can I increment it when they make a new post?
[16:56:00] andhof-mt: its literally just an int that starts at 0 and I want to increment it whenever someone makes a post
[16:58:05] andhof-mt: I'm trying to get more subscribers, so feel free to share them. I've been doing 1 or so per day
[02:44:49] andhof-mt: Radar, DHH says mobile will be big with Rails 5 and I'd like to see some books using Rails 5 to build Hybrid apps
[03:07:35] andhof-mt: http://www.carbuzz.com/news/2014/10/7/One-of-a-Kind-Koenigsegg-Agera-HH-Spotted-7722999/
[03:51:37] andhof-mt: I don't see why you would ban alcohol with caffeine in it. Instead, everyone will just buy their alcohol and caffeine separately and mix them.
[04:00:48] andhof-mt: Yeah, thats why I switched to Linux. I actually code much faster with the terminal at my fingertips
[04:55:24] andhof-mt: is there anyway to make a loop that is along the lines of "every 30 seconds... do"
[05:24:12] andhof-mt: is there anyway I can just store the result of the api as text in te controller such as: myText = (myurl).getText
[06:35:51] andhof-mt: just need to work on the quality of quotes he is scaping, and auto mate the posts on a time frame
[06:49:00] andhof-mt: no, but I would like to. Me and some friends took first place at the last google sponsored hackathon here