Page 1 of 1
[07:50:54] C0r3: I just tweeted him asking why rails framework is called ruby on rails and not rails on ruby....
[14:46:41] C0r3: Guys, I have an app with `users` table and `items` table, and they have been polymorphically associated to `photos` table the database. I want to know, which is the best place (directory in app) to store the User and Item photos??
[14:50:03] C0r3: rvanlieshout: Yes! They are like profile photos. Every user and item can have only one photo each.
[14:50:54] C0r3: rvanlieshout: I'm wondering whether to create a new folder in the public directory for every new user who registers? Or shall I put them all in one place?
[14:52:39] C0r3: carrierwave?? Is it a gem? Sorry, I didn't hear that before, I'm new to rails. Can you please explain a bit about it?
[14:54:32] C0r3: rvanlieshout: Is there any nice gem that can handle the messaging system for my application??
[06:11:41] C0r3: I have two tables, `users` and `items` namely, where Item model belongs to User model (many-to-one). I also have another join table `wishlists` to hold `user_id` and `item_id` (many-to-many). I wanted to know, is it possible to define a 'has_many' declaration with different name, so that I can access the wishlists of a corresponding user as follows: @users.items_in_wishlist
[06:14:20] C0r3: I have two tables, `users` and `items` namely, where Item model belongs to User model (many-to-one). I also have another join table `wishlists` to hold `user_id` and `item_id` (many-to-many). I wanted to know, is it possible to define a 'has_many' declaration with different name, so that I can access the wishlists of a corresponding user as follows: @users.items_in_wishlist
[08:06:00] C0r3: Hey guys, I need a quick help. I have a `photos` table which is used by both `users` table and `items` table. The rails terms say, "Given entity x and entity y, if entity y belongs to entity x, then table y has a field
[08:07:08] C0r3: called x_id". But in my case, the tables `users` and `items` contain the field `photo_id`. How am I supposed to deal with this situation?
[08:09:02] C0r3: Hey guys, I need a quick help. I have a `photos` table which is used by both `users` table and `items` table. The rails terms say, "Given entity x and entity y, if entity y belongs to entity x, then table y has a field called x_id". In my case, photos belong to users and items but the tables `users` and `items` contain the field `photo_id`. How am I supposed to deal with this situation?
[08:11:42] C0r3: Cohedrin: Actually, every item has one photo and every user also has only one photo. This way, I presume, that photo belongs to item or a user.
[06:22:43] C0r3: Is there an enum type available for migrations in rails?? If not how to manage such data?
[05:33:58] C0r3: I want to create a rails app, where in there is a user system but I want to use two different tables for storing user data. One will be for storing data which will be used for logging in and another table which will hold the profile data. Is there any way that I can access a single object will all the attributes (login table and profiles table included) from both the tables?
[06:14:46] C0r3: Radar: Because, the login data will be accessed only when a user logins and the profile data when the user is using the app. That way, if the traffic is very high then it will not affect the user log in.
[06:19:29] C0r3: Radar: Have a look at this: http://programmers.stackexchange.com/questions/241089/keep-user-and-user-profile-in-different-tables
[07:20:32] C0r3: Can anybody please answer question?? Can we have a single model for two different tables without any common attributes???
[07:24:37] C0r3: rvanlieshout: I have separated user login data and profile data in two different tables. Can't I have a single model to access both the data?
[03:59:52] C0r3: Hey guys... I have used 'rails new something -d mysql' command to create a new rails project but my prompt isn't back and taking a lot of time..?? Does 'rails new' command has to download any dependancies from internet??
[07:11:30] C0r3: I just don't understand what is Ruby MRI?? I looked up the Wikipedia page yet have no idea what is it about?? How is it different from Ruby??
[07:24:38] C0r3: Ox0dea: I need to understand what is a reference implementation. Any good links other than Wikipedia?
[07:38:43] C0r3: Ox0dea: If I plan to code walk the entire ruby source code then where should I start?
[18:56:07] C0r3: centrx: But is there any suggestions... Like, if you were to host it then where would you host it?
[18:58:58] C0r3: centrx: I'm really new to Ruby... I used to work on Laravel built in PHP. Now I want to build web apps in Ruby. I've heard of Rails but never used it. Did you ever use Laravel or any similar Framework??
[19:54:54] C0r3: I have basic programming experience... By 'basic' I mean it literally and not the language 'BASIC'.. :P I have prior experience in PHP and now I wish to migrate to Ruby. Can anyone guide me the right way??
[19:57:26] C0r3: shevy: Can you please tell me any nice example tasks that can help me enhance my Ruby programming skills?
[20:17:03] C0r3: Okay.. How much time should I expect to get a grip over Ruby? If I have 1 year of programming experience. And you can see my code at www.github.com/Qumonto/usersys
[20:17:55] C0r3: I feel the Ruby community is more friendly than the PHP community. Is it always like this?