Page 1 of 1
[16:23:50] ishikawa91: you can either store them as strings in the database, or you can have a join table where the join would be on notification_id or something
[21:27:43] ishikawa91: fschuindt not much conceptually has changed. the best way to write a small tool, library, or whatever scratches your itch but do it using tdd with rspec
[21:28:24] ishikawa91: take a look at this https://www.relishapp.com/rspec/rspec-rails/docs/gettingstarted
[21:28:40] ishikawa91: and then this https://semaphoreci.com/community/tutorials/getting-started-with-rspec
[15:31:52] ishikawa91: and then any method you declare after it, will be a private method for that module
[15:40:20] ishikawa91: gregf__ thats how you do it. But only the public methods in the module Foo can access the private methods, not the class Bar
[15:49:15] ishikawa91: @gregf__ and @prefixed https://gist.github.com/anonymous/58a502d2d347ff0ba009
[01:24:43] ishikawa91: why don't you write a current_user.full_name method that returns first_name + ' ' + last_name?
[19:25:30] ishikawa91: just a wild guess, but did you commit your Gemfile.lock after adding pg to your gemfile?
[19:30:59] ishikawa91: Ah, its right there in the error dump: https://devcenter.heroku.com/articles/sqlite3
[19:34:06] ishikawa91: Yeah, remove those lines, run bundle install, and then double check sqlite3 is gone from lock file
[19:40:52] ishikawa91: Sass::SyntaxError: Invalid CSS after " -moz-transition": expected ";", was ": border 0.3s"
[19:43:50] ishikawa91: thats why its sometimes easier to do git add file1 file2 etc instead of git add . or git add -A
[19:46:48] ishikawa91: thats kind of where config/database.yml comes in. You can set up different environments
[19:47:09] ishikawa91: yeah, you can use it in development. In your Gemfile just put it in group :development
[19:48:32] ishikawa91: yeah, it looks at your Rails.env and uses the config set in config/database.yml
[19:48:50] ishikawa91: so if Rails.env is set to development, it will use the development config in that yml
[19:49:24] ishikawa91: In general, its set to development automatically. When you run your test suite, the suite sets it to 'test' and heroku sets it to 'production'
[19:51:05] ishikawa91: you can also do `heroku logs -t` to get a live feed in your command line of the log file
[00:19:37] ishikawa91: @mehwork check out application.html.erb for where the flash messages are being outputted
[00:21:20] ishikawa91: yeah I don't think so either. Someone must have manually put them in there. I would take a look at there first.
[00:41:01] ishikawa91: but I suppose since osx and what not have case sensitive paths, using lowercase is just easier to be cross-platform considerate
[01:47:41] ishikawa91: Seems like that insert happened in a previous test, but did not get removed before running this one
[19:52:13] ishikawa91: well, you can always extend ha. But by default it only works with array, right?
[20:12:27] ishikawa91: @goldfish6744 is that `mapper` right after the first items.each do |i| statement a typo?
[23:24:19] ishikawa91: My application css is being cached in my dev environment. The only thing I changed was move require_tree . and did @import "*"
[23:25:17] ishikawa91: The @import is so that I have access to the bootstrap mixins in my stylesheets which you can't do when you require instead of import
[04:22:23] ishikawa91: Hey guys, not sure which channel this would be best asked. I have controller specific css sheets and have @import'd bootstrap into the application manifest. How do I get bootstrap scoped into the controller stylesheets without having bootstrap get loaded twice?
[04:37:23] ishikawa91: I have imported bootstrap into the application.css.scss file so its available on every page
[04:40:54] ishikawa91: I want to be able to make my classes inherit from bootstrap ie: @include .col-md-4; so I dont have to put that in the html itself
[04:43:26] ishikawa91: I guess my concern would be then every controller would have bootstrap in it so overall all my css size will increase
[04:43:40] ishikawa91: Instead of including bootstrap once in application.css where it can be cached
[04:46:06] ishikawa91: I guess it doesn't in theory. Just read a guide online that suggested doing it that way
[04:47:04] ishikawa91: I guess my thinking was file sizes. Would having everything in application.css slow things down?
[07:51:42] ishikawa91: Sure. Is the main difference that scaffold also generates a controller (and views) for the model?
[02:24:30] ishikawa91: How does one manage database passwords in database.yml? Putting the password in the clear seems wrong to me.
[02:30:27] ishikawa91: Its probably closer to managing (and automating) developer and production environments
[02:32:38] ishikawa91: An example would be writing scripts (and using tools) to spin up server instances for some production application
[00:13:12] ishikawa91: I am new to irc and am trying to get into the rubyonrails channel. But its telling me I need to register? Can someone help me?