Page 1 of 1
[14:05:26] mongag: here's the code https://gist.github.com/anonymous/541b62eaa551121f527227d6406bf24b
[15:56:35] mongag: I've generate a simple controller with rails. It works fine in development env but when I switch to production I got an error We're sorry, but something went wrong.
[16:02:13] mongag: I would show you the User class if you want but it's skinny. Just two methods defined
[16:10:34] mongag: pontiki: The same url works fine in development mode but when I change to production I got the error
[18:09:18] mongag: I can't get assets to work in production in the production log I get ActionController::RoutingError (No route matches [GET] "/stylesheets/application.css"):
[18:09:33] mongag: I've added config.assets.precompile = ['*.js', '*.css', '*.css.erb'] in production.rb
[14:30:52] mongag: How do I add a new gem to the project? I have added gem 'awesome_print' in the Gemfile the bundle install but awesome_print is not installed?
[17:57:31] mongag: When I create a new rails project it is in development env. How to switch to production?
[18:21:17] mongag: How do I change the template where it says The page you were looking for doesn't exist?
[10:39:30] mongag: I have seen a lot's of there config.action_mailer.raise_delivery_errors = false in rails but I don't know what it is. It's not a variable, hash or array so?
[10:44:00] mongag: I have seen a lot's of there config.action_mailer.raise_delivery_errors = false in rails but I don't know what it is. It's not a variable, hash or array?
[11:41:24] mongag: How do I generate a ctags file for the rails project including rails core files? When I do ctags -R in the project dir it generates indexes only for the files in the dir but not for core files
[17:01:22] mongag: bricker`work: pls see the updated version https://gist.github.com/anonymous/ae90113d8e72e702a8b0
[17:03:36] mongag: I thought host= will be called when a parameter is passed and host will be called if not arent they "custom" setter/getter?
[19:16:03] mongag: What does this inherit do? class IndexDefinition < Struct.new(:table, :name, :unique, :columns, :lengths, :orders, :where, :type, :using)
[19:21:28] mongag: aperios I understand that but what about instead of just inherit it a new instance is passed or something like that?
[19:30:12] mongag: apeiros: sorry but my client doesn't support tab completion... I know that for example class A < B here class A inherits class B but what about class A < B.new(:name, :password) for example?
[14:45:45] mongag: Found this method in some class https://gist.github.com/anonymous/81e071978f2014847c38 what does it do?
[09:17:32] mongag: I see often methods that are setters/gettesr like def name @name end def name=(name) @name = name end? What I can't understand is why do they use them when a attr_accessor which will "generate" getters/setters can be used?
[09:52:40] mongag: def m_method "string" end def m_method return "string" end both methods returns the string. So do I need to use return?
[18:08:14] mongag: I'm new to ruby. I notice that I can omit brackets in methods. For example "abc".concat "edf" and I love it. My question is is it a good practice to omit the brackets?
[07:45:56] mongag: I know that application.hmtl.erb is default layout for all controllers. What I wan't is to have two layouts. One for the front end and other for the admin pane. How to achieve that?
[16:42:29] mongag: Let's take text_area_tag(:message, "Hi, nice site", size: "24x6") method. What size: is here? Parameter or? and why is with : at the end?
[16:46:41] mongag: I preffer :key => "value" method. Is it ok? Ot I should use key: "value" conception?
[13:46:10] mongag: Here how I'm trying to display an image on the webpage <%= image_tag(product.image_url, class: 'highlight') %>. The image is located at assets/images/image.png. The problem is that when the page is rendered the url for the image points to assets/image.png instead of assets/images/image.png.
[13:49:07] mongag: The problem is that when the page is rendered the url to image is <img src="host.com/assets/image.png"> instead of <img src="host.com/assets/images/image.png">
[13:52:12] mongag: <%= image_tag(product.image_url, class: 'highlight') %> the image is located in app/assets/images/
[18:37:15] mongag: Well I don't think that $35 for 2 dynos is cheap. It is $420 per year. Which compared with php hosting is?. expensive
[19:11:55] mongag: Well I'm confused. If I use php and apache I can host as many websites as I wish. What about rails ? Is there A way to run multiple Rails apps running simultaneously on port 80 ?