tibra

Activity Graph

Page 1 of 2 | Next »

2016-02-20

[01:21:38] tibra: has joined #RubyOnRails
[01:50:27] tibra: Ping timeout: 248 seconds
[02:00:21] tibra: has joined #RubyOnRails
[02:07:38] tibra: Ping timeout: 244 seconds

2016-01-19

[00:32:22] tibra: has joined #RubyOnRails
[00:36:55] tibra: Ping timeout: 265 seconds
[02:33:16] tibra: has joined #RubyOnRails
[02:38:14] tibra: Ping timeout: 276 seconds
[04:34:20] tibra: has joined #RubyOnRails
[04:39:05] tibra: Ping timeout: 260 seconds
[06:35:10] tibra: has joined #RubyOnRails
[06:39:26] tibra: Ping timeout: 250 seconds
[07:57:11] tibra: has joined #RubyOnRails
[08:06:26] tibra: Ping timeout: 240 seconds
[08:07:19] tibra: has joined #RubyOnRails
[13:46:06] tibra: Ping timeout: 256 seconds
[14:21:24] tibra: has joined #RubyOnRails
[15:22:56] tibra: Read error: Connection reset by peer

2016-01-18

[16:32:06] tibra: Ping timeout: 240 seconds
[18:29:35] tibra: has joined #RubyOnRails
[18:33:54] tibra: Ping timeout: 245 seconds
[20:30:28] tibra: has joined #RubyOnRails
[20:34:59] tibra: Ping timeout: 264 seconds
[22:31:25] tibra: has joined #RubyOnRails
[22:36:26] tibra: Ping timeout: 276 seconds

2016-01-16

[09:18:42] tibra: has joined #RubyOnRails
[09:49:38] tibra: Ping timeout: 255 seconds
[10:12:29] tibra: has joined #RubyOnRails
[11:32:58] tibra: Ping timeout: 272 seconds

2016-01-15

[07:14:34] tibra: has joined #RubyOnRails
[07:18:47] tibra: Ping timeout: 246 seconds
[07:19:27] tibra: has joined #RubyOnRails
[09:38:51] tibra: Ping timeout: 265 seconds
[09:40:08] tibra: has joined #RubyOnRails
[09:45:21] tibra: Read error: Connection reset by peer
[16:02:12] tibra: has joined #RubyOnRails
[16:06:25] tibra: Ping timeout: 245 seconds
[16:07:13] tibra: has joined #RubyOnRails
[16:37:34] tibra: Ping timeout: 250 seconds

2016-01-14

[07:59:26] tibra: has joined #RubyOnRails
[08:03:54] tibra: Ping timeout: 255 seconds
[08:04:26] tibra: has joined #RubyOnRails
[11:18:50] tibra: Ping timeout: 276 seconds
[12:46:31] tibra: has joined #RubyOnRails
[12:51:00] tibra: Ping timeout: 245 seconds
[12:51:33] tibra: has joined #RubyOnRails
[16:59:26] tibra: Ping timeout: 240 seconds

2016-01-13

[07:33:03] tibra: has joined #RubyOnRails
[07:37:15] tibra: Ping timeout: 240 seconds
[07:38:07] tibra: has joined #RubyOnRails
[11:14:09] tibra: ACTION suggests AImlessRaven to take a look at this beautiful gist
[11:35:07] tibra: Ping timeout: 260 seconds
[11:43:37] tibra: has joined #RubyOnRails
[11:43:49] tibra: AImlessRaven: a method in ruby will always return the last instruction or something comes after a "return" keyword. so when you push something to an array that is what gets returned
[11:46:16] tibra: this is btw the reason to learn some ruby before solving problems with it
[11:47:37] tibra: (hint: coding is even more fun when not running into a gazillion problems associated with ruby when doing rails)
[12:23:07] tibra: that is interesting
[13:33:57] tibra: gavit: This is no direct help to your problem, but I can highly recommend Martin Fowlers patterns on accounting system, helped me a lot over time: http://www.martinfowler.com/apsupp/accounting.pdf
[13:35:53] tibra: he basically talks about object separation vs. hardcoding. if you're designing anything with money/salary/accounts it is a thought-provoking read
[14:02:06] tibra: Ping timeout: 255 seconds

2016-01-12

[07:51:56] tibra: has joined #RubyOnRails
[08:01:05] tibra: Ping timeout: 276 seconds
[08:01:39] tibra: has joined #RubyOnRails
[11:29:11] tibra: mrbubble_: if you're using postgres and you have a created_at timestamp, you can use the extract() method, see https://gist.github.com/tibra/bc5c533b74cc91b3e552
[11:32:48] tibra: mrbubble_: I havn't used it for splitting up the %M:%H from time but it might work similar as in the gist. good luck ;-)
[14:32:09] tibra: kitsuneyo: this might a missmatch between PUT and PATCH. in your routes, substitute put with patch. in your form, use user_profile_path instead of user_edit_profile_path
[14:32:54] tibra: user_edit_profile_path is not defined to handle this form in your example
[14:40:33] tibra: no not in your example
[14:40:47] tibra: in your rake routes there is a user_profile_path with PATCH
[14:41:36] tibra: but you're sending your request to user_edit_profile_path.
[14:46:32] tibra: kitsuneyo: rake routes|grep update_profile
[14:48:13] tibra: kitsuneyo: seems you're working an old tutorial, check on strong parameters
[14:48:14] tibra: profile_params
[14:48:48] tibra: do you have your profile_params defined?
[14:49:19] tibra: should be a private method in your profiles_controller.rb
[14:54:46] tibra: kitsuneyo: for debugging, check your development.log (tail -f log/development.log) and fire that request again. Make sure thate Paramters: { ... "profile" => { ... } } is present and gets submitted to the controller.
[15:00:16] tibra: kitsuneyo: yes, but I'm not sure why your rake routes output include a :user_id... I've only seen this with nested_resources
[15:01:10] tibra: kitsuneyo: I'd always add "on: 'member'" or 'on: 'collection'" to a routes entry
[15:01:26] tibra: what does your log say?
[15:03:56] tibra: kitsuneyo: this tells you that there is no profile entry in params (as you can see in the Parameters: { ... } <-- no "profile" entry)
[15:04:54] tibra: kitsuneyo: try form_for :profile, @profile, url: ...
[15:09:08] tibra: kitsuneyo: yeah, sorry. I'd check the value of @profile then, ie. in your view <%= @profile.inspect %>
[15:20:15] tibra: kitsuneyo: whooops, I didn't scroll your gist
[15:20:27] tibra: yes, this is user_profile => { ??? }
[15:20:42] tibra: so in your controller you want to have user_profile_params instead of profile_params
[15:21:23] tibra: no user_profile
[15:21:30] tibra: since this is what gets submitted
[15:22:21] tibra: strong parameters require(:key) is exactly what allows/forbids your params hash content
[15:22:32] tibra: you're welcome kitsuneyo
[15:37:27] tibra: Ping timeout: 265 seconds

2016-01-11

[08:08:26] tibra: has joined #RubyOnRails
[09:18:20] tibra: rails690: maybe split this up in multiple pages/sections. 200+ input fields will probably render unusable in most browsers (and it doesnt fit a modal well either I guess ;-)
[10:45:06] tibra: Ping timeout: 272 seconds
[11:41:14] tibra: has joined #RubyOnRails
[12:36:30] tibra: Read error: Connection reset by peer
[12:38:56] tibra: has joined #RubyOnRails
[16:38:04] tibra: Ping timeout: 245 seconds

2016-01-09

[09:52:43] tibra: has joined #RubyOnRails
[09:56:55] tibra: Ping timeout: 240 seconds
[09:57:44] tibra: has joined #RubyOnRails
[11:56:03] tibra: Ping timeout: 265 seconds
[12:05:42] tibra: has joined #RubyOnRails
[12:19:57] tibra: Ping timeout: 250 seconds

2016-01-08

[04:54:09] tibra: Read error: Connection reset by peer
[04:57:35] tibra: has joined #RubyOnRails
[16:34:46] tibra: Ping timeout: 240 seconds

2016-01-07

[06:10:31] tibra: has joined #RubyOnRails
[06:15:06] tibra: Ping timeout: 256 seconds
[06:15:33] tibra: has joined #RubyOnRails
[06:31:50] tibra: kknight: 4.2.5 probably https://github.com/rails/rails/releases
[06:32:22] tibra: set new rails version in your Gemfile and run bundle install
[06:33:19] tibra: sorry, i don't understand your question
[06:36:20] tibra: you should put at least the branch for the latest major version you're using in your Gemfile, otherwise you won't have control over rails upgrades that might your applications because of api changes etc.
[06:36:24] tibra: gem 'rails', github: 'rails/rails', branch: '4-2-stable'
[06:37:02] tibra: *might break
[06:37:40] tibra: put this in your Gemfile:
[06:37:42] tibra: gem 'rails', github: 'rails/rails', branch: '4-2-stable'
[06:39:20] tibra: and run "bundle install". thats basically it. if you want to have control over the exact rails version, put gem 'rails', '4.2.5' in your Gemfile. When you want to upgrade to 4.2.6 or whatnot, change your version in the Gemfile and run bundle install
[06:40:54] tibra: because you don't want a Rails 4.x application to become a Rails 5.x overnight. making your code work for a new major version (4.x -> 5.x) is usually combined with some effort and change on your side and you should know what you're doing.
[06:42:16] tibra: rvanlieshout: agree for minor releases, but wouldn't you recommend that for a change from, say, 4.2.x to 4.3.x?
[06:46:42] tibra: but start with tdd so you know how to do it
[06:49:54] tibra: rvanlieshout: I get the idea about versioning in my Gemfile. Say your gemfile only has gem "rails" in it, how are you upgrading your rails version? by gunning gem update rails?
[06:56:13] tibra: kknight: I think the important piece is to have functioning code and tests to verify your expectation of what ??? at least your critical ??? code does. if you write a test before or after writing code depends on your personal preference and the type of problem.
[15:16:35] tibra: Ping timeout: 240 seconds
[17:11:08] tibra: has joined #RubyOnRails
[17:26:57] tibra: Ping timeout: 265 seconds
[17:29:33] tibra: has joined #RubyOnRails

2016-01-06

[06:03:19] tibra: has joined #RubyOnRails
[06:10:47] tibra: Ping timeout: 276 seconds
[06:11:04] tibra: has joined #RubyOnRails
[12:53:39] tibra: ACTION is entertained
[12:57:08] tibra: (3???2)/2
[12:59:59] tibra: which is correct.
[13:01:04] tibra: you'll have to multiple by 100.
[13:05:13] tibra: make a method in your model, write a test and use that in your view like Order.percentage_difference(today, yesterday)
[14:02:42] tibra: Ping timeout: 256 seconds

2016-01-05

[05:45:39] tibra: has joined #RubyOnRails
[05:50:35] tibra: Ping timeout: 264 seconds
[05:50:41] tibra: has joined #RubyOnRails
[09:25:28] tibra: AimlessRaven: all in the docs http://guides.rubyonrails.org/active_record_querying.html#scopes
[13:31:47] tibra: Quit: Lost terminal
[13:37:02] tibra: has joined #RubyOnRails
[14:35:24] tibra: ubiks: seems like you're calling it on a relation
[14:39:48] tibra: ubiks: does your user have the following relation? has_many :clans, through: memberships
[14:40:59] tibra: ubiks: then do user.clans.find(clan).user_statis
[14:41:16] tibra: ubiks: ah wait???sorry
[14:45:32] tibra: ubiks: just make sure your instance memberships.where(???).first will always return a record. if its nil and you call user_status it'll blow up
[17:05:01] tibra: Ping timeout: 265 seconds

2016-01-04

[05:43:48] tibra: has joined #RubyOnRails
[08:27:49] tibra: dcunit3d: what are your logs saying?
[08:33:42] tibra: dcunit3d: its been some time i've used jekyll
[09:11:00] tibra: dcunit3d: good you found it, those are the worst "bugs". maybe make a quick blog post about it, somebody else might be grateful
[11:59:44] tibra: Quit: leaving
[11:59:55] tibra: has joined #RubyOnRails
[17:37:54] tibra: Ping timeout: 272 seconds

2016-01-03

[10:22:10] tibra: has joined #RubyOnRails
[12:16:15] tibra: Ping timeout: 240 seconds
[14:05:42] tibra: has joined #RubyOnRails
[14:09:46] tibra: Ping timeout: 240 seconds

2016-01-01

[19:31:09] tibra: has joined #RubyOnRails
[20:22:06] tibra: Ping timeout: 240 seconds

2015-12-31

[12:20:30] tibra: has joined #RubyOnRails
[12:59:30] tibra: Ping timeout: 260 seconds
[13:02:59] tibra: has joined #RubyOnRails
[13:39:46] tibra: Ping timeout: 240 seconds
[13:41:53] tibra: has joined #RubyOnRails
[13:50:35] tibra: Ping timeout: 260 seconds
[14:19:08] tibra: has joined #RubyOnRails
[14:28:41] tibra: Ping timeout: 246 seconds
[14:29:55] tibra: has joined #RubyOnRails
[14:42:47] tibra: Read error: Connection reset by peer
[14:44:08] tibra: has joined #RubyOnRails
[14:50:40] tibra: Read error: Connection reset by peer

2015-12-30

[10:26:47] tibra: has joined #RubyOnRails
[10:31:30] tibra: Ping timeout: 255 seconds
[10:31:48] tibra: has joined #RubyOnRails
[13:07:59] tibra: Ping timeout: 264 seconds
[15:14:39] tibra: has joined #RubyOnRails
[15:19:07] tibra: Ping timeout: 260 seconds

2015-12-29

[07:51:58] tibra: has joined #RubyOnRails
[07:53:17] tibra: Read error: Connection reset by peer
[07:56:57] tibra: has joined #RubyOnRails
[08:43:26] tibra: Ping timeout: 272 seconds
[12:06:59] tibra: has joined #RubyOnRails
[14:35:53] tibra: Ping timeout: 246 seconds
[16:08:44] tibra: has joined #RubyOnRails
[16:50:43] tibra: Ping timeout: 250 seconds
[21:57:17] tibra: has joined #RubyOnRails
[23:53:30] tibra: Ping timeout: 260 seconds

2015-12-28

[14:59:05] tibra: has joined #RubyOnRails
[14:59:09] tibra: Client Quit
[14:59:32] tibra: has joined #RubyOnRails
[15:04:41] tibra: Ping timeout: 246 seconds
[15:40:41] tibra: has joined #RubyOnRails
[15:47:34] tibra: Ping timeout: 272 seconds
[16:26:18] tibra: has joined #RubyOnRails
[17:01:44] tibra: Ping timeout: 276 seconds
[19:09:14] tibra: has joined #RubyOnRails
[19:32:11] tibra: Ping timeout: 265 seconds
[19:55:12] tibra: has joined #RubyOnRails
[20:46:17] tibra: Ping timeout: 246 seconds
[22:35:09] tibra: has joined #RubyOnRails
[23:14:15] tibra: Ping timeout: 255 seconds

2015-12-27

[18:37:33] tibra: has joined #RubyOnRails
[19:15:54] tibra: Quit: tibra
[21:01:58] tibra: has joined #RubyOnRails
[21:03:31] tibra: Client Quit
[21:03:54] tibra: has joined #RubyOnRails
[21:14:01] tibra: Read error: Connection reset by peer
[22:24:14] tibra: has joined #RubyOnRails
[22:35:26] tibra: Ping timeout: 276 seconds

2015-12-24

[10:09:44] tibra: has joined #RubyOnRails
[10:15:11] tibra: Ping timeout: 276 seconds

2015-12-23

[00:57:34] tibra: Ping timeout: 250 seconds
[08:53:27] tibra: has joined #RubyOnRails
[08:57:41] tibra: Ping timeout: 246 seconds
[11:20:43] tibra: has joined #RubyOnRails
[12:25:35] tibra: Ping timeout: 240 seconds
[15:13:47] tibra: has joined #RubyOnRails
[15:23:39] tibra: Quit: tibra

2015-12-22

[07:43:30] tibra: has joined #RubyOnRails
[07:47:39] tibra: Ping timeout: 245 seconds
[11:16:21] tibra: has joined #RubyOnRails
[11:16:26] tibra: Remote host closed the connection
[11:17:38] tibra: has joined #RubyOnRails
[11:22:59] tibra: Ping timeout: 265 seconds
[12:39:28] tibra: has joined #RubyOnRails
[16:31:51] tibra: Read error: Connection reset by peer
[21:50:56] tibra: has joined #RubyOnRails

2015-12-21

[09:03:08] tibra: has joined #RubyOnRails
[11:31:03] tibra: Read error: Connection reset by peer
[11:31:39] tibra: has joined #RubyOnRails
[16:44:43] tibra: Ping timeout: 260 seconds

2015-12-05

[13:14:04] tibra: has joined #RubyOnRails
[13:16:18] tibra: Read error: Connection reset by peer

2015-12-04

[06:26:17] tibra: has joined #RubyOnRails
[06:30:38] tibra: Ping timeout: 260 seconds
[14:31:00] tibra: has joined #RubyOnRails
[14:43:10] tibra: Read error: Connection reset by peer
[15:56:02] tibra: has joined #RubyOnRails
[16:00:28] tibra: Client Quit

2015-12-03

[06:53:03] tibra: has joined #RubyOnRails
[12:33:32] tibra: Ping timeout: 246 seconds

2015-12-02

[11:12:48] tibra: has joined #RubyOnRails
[14:09:19] tibra: Ping timeout: 245 seconds
[16:50:51] tibra: has joined #RubyOnRails
[16:55:14] tibra: Ping timeout: 260 seconds