mongag

Activity Graph

Page 1 of 1

2018-03-22

[15:13:02] mongag: has joined #ruby
[15:35:30] mongag: Quit: BitchX-1.2.1 -- just do it.

2018-02-05

[07:32:19] mongag: has joined #ruby
[07:32:19] mongag: Changing host
[11:36:01] mongag: Ping timeout: 248 seconds

2018-01-19

[13:45:53] mongag: has joined #ruby
[13:45:53] mongag: Changing host
[13:45:53] mongag: has joined #ruby
[13:50:08] mongag: Client Quit
[13:50:25] mongag: has joined #ruby
[13:54:54] mongag: Client Quit
[13:55:14] mongag: has joined #ruby
[13:55:14] mongag: Changing host
[13:55:14] mongag: has joined #ruby
[15:33:15] mongag: Quit: [BX] I got sucked into /dev/null!

2018-01-09

[07:15:45] mongag: Quit: BitchX-1.2.1 -- just do it.

2018-01-08

[14:00:20] mongag: has joined #ruby
[14:05:00] mongag: Not sure why I'm getting this error
[14:05:15] mongag: app.rb:3:in `<main>': uninitialized constant MyModule (NameError)
[14:05:26] mongag: here's the code https://gist.github.com/anonymous/541b62eaa551121f527227d6406bf24b
[14:16:06] mongag: require_relative did the trick
[14:16:23] mongag: not sure why require didn't work

2014-08-10

[13:45:38] mongag: In which file (RoR 4.1.4) I can set sass options?
[13:57:03] mongag: In which file (RoR 4.1.4) I can set sass options?
[14:03:57] mongag: tbuehlmann: Do I need to restart the server after change?
[14:06:47] mongag: tbuehlmann: I added config.sass.style = :nested
[14:07:28] mongag: in config/application.rb then restarted the server but no effect
[14:09:01] mongag: supposed to be
[14:12:00] mongag: thanks anyway
[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.
[15:56:50] mongag: What's wrong?
[16:01:12] mongag: Here is the trace https://gist.github.com/anonymous/e2451fc9aa28909d1d74
[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
[16:14:14] mongag: pontiki: yes it throws an error if the key is not specified
[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

2014-08-09

[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?
[14:33:06] mongag: I've tried in a group like that gem 'awesome_print', group: :development
[14:33:19] mongag: then "outside" of group no difference
[14:35:26] mongag: gem list | grep -i awse
[14:45:07] mongag: wpp yep rvm
[17:57:31] mongag: When I create a new rails project it is in development env. How to switch to production?
[18:00:55] mongag: centrx: in which flie?
[18:21:17] mongag: How do I change the template where it says The page you were looking for doesn't exist?
[18:21:30] mongag: I mean where to find it
[18:22:34] mongag: so simple thanks parzo

2014-08-08

[10:37:34] mongag: I have seen a lots of these in rails configs config.cache_classes = false
[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
[16:56:18] mongag: Need help here - https://gist.github.com/anonymous/1b0e31f212103e8952d4
[16:56:36] mongag: I expected config.host to access the symbol passed but I get an error
[17:01:22] mongag: bricker`work: pls see the updated version https://gist.github.com/anonymous/ae90113d8e72e702a8b0
[17:01:25] mongag: still get an error
[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:19:43] mongag: I'm confused. Can you give me what to search in google?
[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?
[19:31:00] mongag: x-chat aqua
[19:35:35] mongag: apeiros: I'm referring to http://sourceforge.net/projects/xchataqua/ not xchat
[19:36:25] mongag: Well then dosen't work for me :(

2014-08-06

[13:21:37] mongag: Why I get an error here - http://repl.it/WYD ?
[13:28:05] mongag: jhass thanks
[14:45:45] mongag: Found this method in some class https://gist.github.com/anonymous/81e071978f2014847c38 what does it do?
[14:48:01] mongag: Can you explain me in a nutshell what's the purpose of that?

2014-08-05

[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?
[09:55:23] mongag: jhass thanks again

2014-08-04

[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?

2013-08-09

[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?
[07:46:46] mongag: sevenseacat: how to tell that? Could you give me some examples?

2013-08-08

[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:45:32] mongag: DouweM: thx for explanation
[16:46:41] mongag: I preffer :key => "value" method. Is it ok? Ot I should use key: "value" conception?

2013-01-18

[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:47:32] mongag: sevenseacat: yes
[13:48:02] mongag: the image name 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:49:26] mongag: I tought that image_tag points to assets/images/ by default
[13:51:01] mongag: sevenseacat
[13:51:25] mongag: No route matches [GET] "/assets/ruby.jpg"
[13:52:12] mongag: <%= image_tag(product.image_url, class: 'highlight') %> the image is located in app/assets/images/
[13:53:04] mongag: Here is the result - <img alt="Ruby" class="highlight" src="/assets/ruby.jpg" />
[13:56:40] mongag: workmad3: the problem was wrong typed filename.
[13:57:11] mongag: Anyway. How to switch between development and production ?

2013-01-17

[18:31:01] mongag: Can you recommend me cheap rails hosting ?
[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
[18:43:42] mongag: Spaceghost|cloud I tought that u r a bot?? appfog sounds good

2013-01-15

[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 ?
[19:12:40] mongag: ok i'll take a look